我开发了我们公司的oauth鉴权插件,打包镜像后在部署的时候,如何修改为自己打包的镜像呢。默认是官方镜像,我目前的做法是部署好了,手动去修改ks-apiserver的images,但是每次重启apiserver又会被覆盖为官网镜像。如何修改永久生效呢?

6 天 后

jungle2fox

如果想自定义镜像,可以在cc里添加这些参数指定,或者定制 build 一个ks-installer

    最后怎么解决的,能否详细说下,我也遇到了同样的问题

    10 个月 后

    请问自己 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

    5 个月 后

    ks-开头的几个pod每次开机都必须去拉取官网镜像,我改了imagePullPolicy: "IfNotPresent"结果还会被自动还原成always,怎么办呢大佬们,,,这就意味着必须要联网才能启动kubesphere,,,离线根本用不了

      6 个月 后

      qlp 你的这个问题最后解决了吗 我也遇到了

      1. 编辑cc,修改ks-apiserver 和 ks-controller-manager 镜像
        kubectl -n kubesphere-system edit clusterconfigurations.installer.kubesphere.io ks-installer

      2. 查看ks-installer日志, 等待ks-installer更新完成
        kubectl -n kubesphere-system logs ks-installer-648b946f75-nlzzr

      3. 查看deployment ks-apiserver 和 ks-controller-manager的镜像
        kubectl -n kubesphere-system get deploy ks-apiserver ks-controller-manager -o yaml |grep image