小编Tia*_*ans的帖子

如何在掌舵图中引用 kubernetes 的秘密?

我想使用 helm charts 在 kubernetes 中进行一些部署。这是我使用的示例覆盖值 yaml:

imageRepository: ""

ocbb:
    imagePullPolicy: IfNotPresent
    TZ: UTC
    logDir: /oms_logs
    tnsAdmin: /oms/ora_k8
    LOG_LEVEL: 3
    wallet:
        client: 
        server: 
        root:
    db:
        deployment:
            imageName: init_db
            imageTag:
        host: 192.168.88.80
        port:
        service:
        alias:
        schemauser: pincloud
        schemapass:
        schematablespace: pincloud
        indextablespace: pincloudx
        nls_lang: AMERICAN_AMERICA.AL32UTF8
        charset: AL32UTF8
        pipelineschemauser: ifwcloud
        pipelineschemapass:
        pipelineschematablespace: ifwcloud
        pipelineindextablespace: ifwcloudx
        pipelinealias:
        queuename:

Run Code Online (Sandbox Code Playgroud)

在此文件中,我必须设置一些涉及凭据的值,例如 schemapass、pipelineschemapass...文档说明我必须生成 kubernetes 机密才能执行此操作,并将此密钥添加到具有相同路径层次结构的 yaml 文件中。

我生成了一些 kubernetes 的秘密,例如:

kubectl create secret generic schemapass --from-literal=password='pincloud'
Run Code Online (Sandbox Code Playgroud)

现在我不知道如何在我的 yaml 文件中引用这个新生成的秘密。关于如何在 yaml 图表中设置 schemapass 字段以引用 kubernetes 秘密的任何提示?

kubernetes kubernetes-helm kubernetes-secrets

9
推荐指数
3
解决办法
2万
查看次数

Docker 镜像随着时间的推移而消失

我加载了一些正在运行的 docker 图像

docker load --input <file>
Run Code Online (Sandbox Code Playgroud)

然后我可以在执行时看到这些图像

docker image ls
Run Code Online (Sandbox Code Playgroud)

过了一会儿,图像开始消失。每隔几分钟,列出的图像就会越来越少。我还没有运行任何图像。这个问题的原因可能是什么?

编辑:这个问题出现在 minikube VM 中的 docker 中。

docker minikube

1
推荐指数
1
解决办法
3250
查看次数