一 推送镜像
docker pull quay.io/jetstack/cert-manager-cainjector:v1.8.2
docker tag quay.io/jetstack/cert-manager-cainjector:v1.8.2 10.177.85.101:8000/flink/cert-manager-cainjector:v1.8.2
docker push 10.177.85.101:8000/flink/cert-manager-cainjector:v1.8.2
docker pull quay.io/jetstack/cert-manager-controller:v1.8.2
docker tag quay.io/jetstack/cert-manager-controller:v1.8.2 10.177.85.101:8000/flink/cert-manager-controller:v1.8.2
docker push 10.177.85.101:8000/flink/cert-manager-controller:v1.8.2
docker pull quay.io/jetstack/cert-manager-webhook:v1.8.2
docker tag quay.io/jetstack/cert-manager-webhook:v1.8.2 10.177.85.101:8000/flink/cert-manager-webhook:v1.8.2
docker push 10.177.85.101:8000/flink/cert-manager-webhook:v1.8.2
二 helm安装operator
2.1 添加helm仓库
helm repo add --username admin --password Harbor@2468 harbor http://10.177.85.101:8000/chartrepo/helm
2.2 安装 chart
helm install flink-kubernetes-operator --set image.repository=10.177.85.101:8000/flink/flink-kubernetes-operator --set image.tag latest --username=admin --password=Harbor@2468 --version 1.4.0 harbor/flink-kubernetes-operator -n flink-operator
如果报如下错误:
Error: INSTALLATION FAILED: Internal error occurred: failed calling webhook "webhook.cert-manager.io": Post "https://cert-manager-webhook.cert-manager.svc:443/mutate?timeout=10s": context deadline exceeded
则需要添加--set webhook.create=false
参数
helm install flink-kubernetes-operator --set image.repository=10.177.85.101:8000/flink/flink-kubernetes-operator --set image.tag latest --set webhook.create=false --username=admin --password=Harbor@2468 --version 1.4.0 harbor/flink-kubernetes-operator -n flink-operator