我开发了我们公司的oauth鉴权插件,打包镜像后在部署的时候,如何修改为自己打包的镜像呢。默认是官方镜像,我目前的做法是部署好了,手动去修改ks-apiserver的images,但是每次重启apiserver又会被覆盖为官网镜像。如何修改永久生效呢?
如何使用自构建的镜像
没有人支持一下吗?
CauchyK零SK壹S
Cauchy 谢谢!请问修改cc是加到哪个字段下面呢?
CauchyK零SK壹S
spec 下边就可以
Cauchy 已解决,谢谢!
最后怎么解决的,能否详细说下,我也遇到了同样的问题
请问自己 build ks-installer 有对应的教程吗,我用下面的 Dockerfile 进行 build 之后运行一直有报错
https://github.com/flant/shell-operator/tree/v1.0.0-beta.5
https://github.com/kubesphere/ks-installer/blob/v3.2.0/Dockerfile
报错类似
2023-07-18T07:11:11Z INFO : shell-operator latest
2023-07-18T07:11:11Z INFO : HTTP SERVER Listening on 0.0.0.0:9115
2023-07-18T07:11:11Z INFO : Use temporary dir: /tmp/shell-operator
2023-07-18T07:11:11Z INFO : Initialize hooks manager …
2023-07-18T07:11:11Z INFO : Search and load hooks …
2023-07-18T07:11:11Z INFO : Load hook config from ‘/hooks/kubesphere/installRunner.py’
Traceback (most recent call last):
File “/hooks/kubesphere/installRunner.py”, line 8, in <module>
import ansible_runner
ModuleNotFoundError: No module named ‘ansible_runner’
2023-07-18T07:11:11Z ERROR : Hook ‘/hooks/kubesphere/installRunner.py –config’ output:
Unable to initialize hook manager: cannot get config for hook ‘/hooks/kubesphere/installRunner.py’: exit status
ks-开头的几个pod每次开机都必须去拉取官网镜像,我改了imagePullPolicy: "IfNotPresent"结果还会被自动还原成always,怎么办呢大佬们,,,这就意味着必须要联网才能启动kubesphere,,,离线根本用不了
- 已编辑
编辑cc,修改ks-apiserver 和 ks-controller-manager 镜像
kubectl -n kubesphere-system edit clusterconfigurations.installer.kubesphere.io ks-installer查看ks-installer日志, 等待ks-installer更新完成
kubectl -n kubesphere-system logs ks-installer-648b946f75-nlzzr查看deployment ks-apiserver 和 ks-controller-manager的镜像
kubectl -n kubesphere-system get deploy ks-apiserver ks-controller-manager -o yaml |grep image