检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
ConfigMap or its key must be defined 表27 io.k8s.api.core.v1.SecretKeySelector 参数 是否必选 参数类型 描述 key 是 String The key of the secret to select from
ConfigMap or its key must be defined 表29 io.k8s.api.core.v1.SecretKeySelector 参数 是否必选 参数类型 描述 key 是 String The key of the secret to select from
值,从而做到灵活的配置,而不是每次都重新编写应用程序制作镜像。 另外,您还可以使用ConfigMap和Secret作为环境变量,详细信息请参见使用ConfigMap和Secret提高配置灵活性。 环境变量的使用方法如下所示,配置spec.containers.env字段即可。 apiVersion:
Service的名称 spec: selector: # Label Selector,选择包含app=nginx标签的Pod app: nginx ports: - name: service0 targetPort: 80 # Pod的端口
LabelSelectorRequirement 参数 参数类型 描述 key String key is the label key that the selector applies to. operator String operator represents a key's relationship to a
the ConfigMap or its key must be defined 表25 io.k8s.api.core.v1.SecretKeySelector 参数 参数类型 描述 key String The key of the secret to select from. Must
LabelSelectorRequirement 参数 参数类型 描述 key String key is the label key that the selector applies to. operator String operator represents a key's relationship to a
the ConfigMap or its key must be defined 表27 io.k8s.api.core.v1.SecretKeySelector 参数 参数类型 描述 key String The key of the secret to select from. Must
the ConfigMap or its key must be defined 表28 io.k8s.api.core.v1.SecretKeySelector 参数 参数类型 描述 key String The key of the secret to select from. Must
the ConfigMap or its key must be defined 表30 io.k8s.api.core.v1.SecretKeySelector 参数 参数类型 描述 key String The key of the secret to select from. Must
the ConfigMap or its key must be defined 表27 io.k8s.api.core.v1.SecretKeySelector 参数 参数类型 描述 key String The key of the secret to select from. Must
the ConfigMap or its key must be defined 表27 io.k8s.api.core.v1.SecretKeySelector 参数 参数类型 描述 key String The key of the secret to select from. Must
ConfigMap or its key must be defined 表25 io.k8s.api.core.v1.SecretKeySelector 参数 是否必选 参数类型 描述 key 是 String The key of the secret to select from
the ConfigMap or its key must be defined 表26 io.k8s.api.core.v1.SecretKeySelector 参数 参数类型 描述 key String The key of the secret to select from. Must
ConfigMap or its key must be defined 表27 io.k8s.api.core.v1.SecretKeySelector 参数 是否必选 参数类型 描述 key 是 String The key of the secret to select from
ConfigMap or its key must be defined 表27 io.k8s.api.core.v1.SecretKeySelector 参数 是否必选 参数类型 描述 key 是 String The key of the secret to select from
参数 是否必选 参数类型 描述 key 是 String key is the label key that the selector applies to. operator 是 String operator represents a key's relationship to
the ConfigMap or its key must be defined 表27 io.k8s.api.core.v1.SecretKeySelector 参数 参数类型 描述 key String The key of the secret to select from. Must
参数 是否必选 参数类型 描述 key 是 String key is the label key that the selector applies to. operator 是 String operator represents a key's relationship to
ConfigMap or its key must be defined 表29 io.k8s.api.core.v1.SecretKeySelector 参数 是否必选 参数类型 描述 key 是 String The key of the secret to select from