我在为Kong安装Helm图表时遇到问题,不确定我做错了还是这是图表问题。
如果我跑步:
helm upgrade kong stable/kong \
--install \
--set ingressController.enabled=true
所有内容均已安装,但是在第二次运行(并且我想在CI / CD中执行始终相同的命令)时,此操作失败,因为migraiton任务的密码错误。
如果我尝试对密码进行硬编码:
helm upgrade kong stable/kong \
--install \
--set ingressController.enabled=true,env.pg_password=<hardcoded-string>
即使首次尝试使用失败的密码,它也会失败。
以连续方式将Kong部署为入口控制器的预期方式是什么?
版本:
rafal.wrzeszcz@devel0:~$ kubectl version
Client Version: version.Info{Major:"1", Minor:"13", GitVersion:"v1.13.3", GitCommit:"721bfa751924da8d1680787490c54b9179b1fed0", GitTreeState:"clean", BuildDate:"2019-02-01T20:08:12Z", GoVersion:"go1.11.5", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"11", GitVersion:"v1.11.6", GitCommit:"b1d75deca493a24a2f87eb1efde1a569e52fc8d9", GitTreeState:"clean", BuildDate:"2018-12-16T04:30:10Z", GoVersion:"go1.10.3", Compiler:"gc", Platform:"linux/amd64"}
rafal.wrzeszcz@devel0:~$ helm version
Client: &version.Version{SemVer:"v2.12.3", GitCommit:"eecf22f77df5f65c823aacd2dbd30ae6c65f186e", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.12.3", GitCommit:"eecf22f77df5f65c823aacd2dbd30ae6c65f186e", GitTreeState:"clean"}
kong-postgres
存在证明:
rafal.wrzeszcz@devel0:~$ kubectl get secret kong-postgresql -o yaml --namespace <my-namespace>
apiVersion: v1
data:
postgresql-password: <base64-encoded-string>
…