我有一个 kubernetes pod 配置为支持 https 的网络服务器。该 Pod 提供 TLS 握手错误日志。当我们尝试在浏览器上访问负载均衡器服务 IP 时,会出现错误 - 连接不安全,继续不安全。为了安全连接,我们将一个自签名证书作为秘密安装到 Pod 卷中。如果我们删除对 https 的支持,一切都会正常。有人可以建议这种行为的可能原因是什么吗?
我正在使用 Buildkit 来构建和推送图像。我想在 buildctl 命令中的图像上添加多个标签。例如 buildctl build --frontend=dockerfile.v0 --local context=。--本地 dockerfile=. --output=type=image,name=test/repo:tag1,test/repo:tag2,push=true
以上命令失败。请建议我如何使用 buildctl 命令用 tag1 和 tag2 标记图像并推送它
使用导出器不起作用,它报告导出器已被弃用
我有一个示例 crd 定义为
crd.yaml
kind: CustomResourceDefinition
metadata:
name: testconfig.demo.k8s.com
namespace: testns
spec:
group: demo.k8s.com
versions:
- name: v1
served: true
storage: true
scope: Namespaced
names:
plural: testconfigs
singular: testconfig
kind: TestConfig
Run Code Online (Sandbox Code Playgroud)
我想基于上述 crd 创建自定义资源,但我不想为资源分配固定名称,而是使用generateName 字段。所以我生成了下面的 cr.yaml。但是当我应用时,它给出错误,名称字段是强制性的
kind: TestConfig
metadata:
generateName: test-name-
namespace: testns
spec:
image: testimage
Run Code Online (Sandbox Code Playgroud)
非常感谢任何帮助。