Put this global config:
git config --global url.ssh://[email protected]/.insteadOf https://github.com/
Or local config per repo:
git config url.ssh://[email protected]/.insteadOf https://github.com/
sudo apt-get remove -y docker docker-engine docker.io containerd runc | |
sudo apt-get update | |
sudo apt-get install -y \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
gnupg \ | |
lsb-release | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg | |
echo \ |
wget https://golang.org/dl/go1.16.7.linux-amd64.tar.gz | |
sudo tar -C /usr/local -xzf go1.16.7.linux-amd64.tar.gz | |
echo "export PATH=$PATH:/usr/local/go/bin">>~/.bashrc | |
source ~/.bashrc |
Put this global config:
git config --global url.ssh://[email protected]/.insteadOf https://github.com/
Or local config per repo:
git config url.ssh://[email protected]/.insteadOf https://github.com/
# with kubectl apply | |
{"level":"info","ts":"2020-11-12T07:44:02.483Z","logger":"eventing-webhook","caller":"webhook/admission.go:89","msg":"Webhook ServeHTTP request=&http.Request{Method:\"POST\", URL:(*url.URL)(0xc000730e80), Proto:\"HTTP/1.1\", ProtoMajor:1, ProtoMinor:1, Header:http.Header{\"Accept\":[]string{\"application/json, */*\"}, \"Accept-Encoding\":[]string{\"gzip\"}, \"Content-Length\":[]string{\"1539\"}, \"Content-Type\":[]string{\"application/json\"}, \"User-Agent\":[]string{\"kube-apiserver-admission\"}}, Body:(*http.body)(0xc000cab380), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:1539, TransferEncoding:[]string(nil), Close:false, Host:\"eventing-webhook.knative-eventing.svc:443\", Form:url.Values(nil), PostForm:url.Values(nil), MultipartForm:(*multipart.Form)(nil), Trailer:http.Header(nil), RemoteAddr:\"192.168.122.162:48808\", RequestURI:\"/defaulting?timeout=2s\", TLS:(*tls.ConnectionState)(0xc0021b5290), Cancel:(<-chan struct {})(nil), Response:(*http.Response)(nil), ctx:(*co |
# 0. setup eventing at v0.18.4 and kafka | |
# 1. Set clusterwide channel to IMC (v1beta1) and namespace (knativetutorial) to Kafka (v1alpha1) | |
cat <<EOF | kubectl apply -f - | |
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: default-ch-webhook | |
namespace: knative-eventing | |
data: | |
default-ch-config: | |
client git:(master) oc logs knative-openshift-99d9d6445-9rfj2 -n openshift-serverless | |
{"level":"info","ts":"2020-10-27T06:44:20.331Z","logger":"cmd","msg":"Go Version: go1.13.8"} | |
{"level":"info","ts":"2020-10-27T06:44:20.331Z","logger":"cmd","msg":"Go OS/Arch: linux/amd64"} | |
{"level":"info","ts":"2020-10-27T06:44:20.331Z","logger":"cmd","msg":"Version of operator-sdk: v0.10.1"} | |
{"level":"info","ts":"2020-10-27T06:44:20.332Z","logger":"leader","msg":"Trying to become the leader."} | |
{"level":"info","ts":"2020-10-27T06:44:20.492Z","logger":"leader","msg":"Found existing lock","LockOwner":"knative-openshift-6dcd97b479-6m6l5"} | |
{"level":"info","ts":"2020-10-27T06:44:20.499Z","logger":"leader","msg":"Not the leader. Waiting."} | |
{"level":"info","ts":"2020-10-27T06:44:21.652Z","logger":"leader","msg":"Not the leader. Waiting."} | |
{"level":"info","ts":"2020-10-27T06:44:24.034Z","logger":"leader","msg":"Became the leader."} | |
{"level":"info","ts":"2020-10-27T06:44:24.172Z","logger":"cmd","msg":"Registering Components."} |
➜ client git:(master) oc logs -f knative-operator-757cf7555f-lrsr8 -n openshift-serverless | |
2020/10/27 06:44:11 Registering 2 clients | |
2020/10/27 06:44:11 Registering 3 informer factories | |
2020/10/27 06:44:11 Registering 3 informers | |
2020/10/27 06:44:11 Registering 2 controllers | |
{"level":"info","ts":"2020-10-27T06:44:11.174Z","caller":"logging/config.go:111","msg":"Successfully created the logger."} | |
{"level":"info","ts":"2020-10-27T06:44:11.174Z","caller":"logging/config.go:112","msg":"Logging level set to debug"} | |
{"level":"info","ts":"2020-10-27T06:44:11.174Z","caller":"logging/config.go:79","msg":"Fetch GitHub commit ID from kodata failed","error":"open /var/run/ko/HEAD: no such file or directory"} | |
{"level":"info","ts":"2020-10-27T06:44:11.174Z","logger":"knative-operator","caller":"profiling/server.go:59","msg":"Profiling enabled: false"} | |
{"level":"info","ts":"2020-10-27T06:44:11.180Z","logger":"knative-operator","caller":"sharedmain/main.go:197","msg":"knative-operator will not run in leader-elected mode"} |
- apiVersion: serving.knative.dev/v1 | |
kind: Route | |
metadata: | |
annotations: | |
serving.knative.dev/creator: [email protected] | |
serving.knative.dev/lastModifier: [email protected] | |
creationTimestamp: "2020-07-31T05:10:16Z" | |
finalizers: | |
- routes.serving.knative.dev | |
generation: 1 |
1 - Get CRC: | |
https://github.com/code-ready/crc/releases | |
excerpts: | |
Downloads are available at: | |
https://mirror.openshift.com/pub/openshift-v4/clients/crc/1.4.0/ . | |
To use these binaries, please follow the instructions at https://cloud.redhat.com/openshift/install/crc/installer-provisioned | |
to obtain the needed pull-secret. | |
(download the pull-secret in your machine in a file) | |
2 - Extract the tar downloaded (there is a crc binary in there, add the extracted dir to your $PATH) |
oc create -f https://github.com/tektoncd/pipeline/releases/download/v0.6.0/release.yaml | |
# wait for tekton to setup | |
oc new-project tutorial | |
oc create serviceaccount pipeline | |
oc adm policy add-scc-to-user privileged -z pipeline | |
oc adm policy add-role-to-user edit -z pipeline | |
# install buildah task | |
oc create -f https://raw.githubusercontent.com/tektoncd/catalog/master/buildah/buildah.yaml |