Tekton安装(记录)
作者:互联网
-
kubectl apply --filename https://storage.googleapis.com/tekton-releases/pipeline/previous/v0.9.2/release.yaml
-
尝试fanqiang拉取镜像:
https://blog.mrwang.pw/2018/12/13/Linux%E5%AE%89%E8%A3%85%E5%B9%B6%E4%BD%BF%E7%94%A8ssr/ -
fanqiang成功,发现还是拉取不了
-
使用Azure Container Registry Proxy拉取镜像
拉取镜像:
docker pull gcr.azk8s.cn/tekton-releases/github.com/tektoncd/pipeline/cmd/controller:v0.9.2@sha256:cc5e186131c9141f512786e3e55aca432e4dae841cad55fbb57d51b17b79371a
docker pull gcr.azk8s.cn/tekton-releases/github.com/tektoncd/pipeline/cmd/kubeconfigwriter:v0.9.2@sha256:5b85511e44ada028c016b9d6ac8612e9c34b2b35c9cace66c34ac3e25ea9ddae
docker pull gcr.azk8s.cn/tekton-releases/github.com/tektoncd/pipeline/cmd/creds-init:v0.9.2@sha256:a74a030d8c9fcb78eba2983296ad06854fdb22f477693de6984817f8498b0f73
docker pull gcr.azk8s.cn/tekton-releases/github.com/tektoncd/pipeline/cmd/git-init:v0.9.2@sha256:ce917a4a8f41a811c485fafec0f92774df3e09316da1d35e5a01e9e95a313f1e
docker pull gcr.azk8s.cn/tekton-releases/github.com/tektoncd/pipeline/cmd/entrypoint:v0.9.2@sha256:83b4e08d7117fb1eae593d4f79ea7a0b548ce8dd8dca7029d554b3fbf9610274
docker pull gcr.azk8s.cn/tekton-releases/github.com/tektoncd/pipeline/cmd/imagedigestexporter:v0.9.2@sha256:10cc6e64fbb28ad87c1a95d7300caa4545fba7903996128198077cd65ca45f0e
docker pull gcr.azk8s.cn/tekton-releases/github.com/tektoncd/pipeline/cmd/pullrequest-init:v0.9.2@sha256:e48df08c8b6a8b2ae57a0afff9190b2dcc59423c2e0bf49e2c69c4d5dab25df6
docker pull gcr.azk8s.cn/tekton-releases/github.com/tektoncd/pipeline/cmd/webhook:v0.9.2@sha256:3bb305e8a2fbacc43c69b9e5de37fe357ca21fcf00e75bb4fb9e36fcf6da28d9
docker pull gcr.azk8s.cn/tekton-releases/github.com/tektoncd/pipeline/vendor/github.com/googlecloudplatform/cloud-builders/gcs-fetcher/cmd/gcs-fetcher:v0.9.2@sha256:8a5227733cec9506389cadccbdd54eaf50dbdfd86fbc49c78309741c70bd358c
-
重命名
docker images | grep gcr | sed 's/gcr.azk8s.cn/gcr.io/g' | awk '{print "docker tag"" " $3" "$1":v0.9.2"}'|sh
对于本地生成的镜像来说,由于没有上传到registry上去,所以没有digest,因为镜像的manifest由registry生成:
-
untag
docker images|grep "gcr.io"|awk '{print $1":v0.9.2"}'|xargs docker rmi
突然意识到把yaml中的仓库替换了就好。。。
-
docker images|grep “gcr”|awk ‘{print $3}’|xargs docker rmi
-
替换掉下载的release.yaml中的仓库地址,重新apply
标签:记录,com,Tekton,gcr,v0.9,tekton,docker,安装,azk8s 来源: https://blog.csdn.net/HaixWang/article/details/104194816