kubernetes-yaml/description/Configuration/Secret/description.yml

24 lines
677 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Secret 说明官方文档https://v1-22.docs.kubernetes.io/zh/docs/concepts/configuration/secret
# API 版本
apiVersion: v1
# 资源类型
kind: Secret
# 元数据
metadata:
## 名称
name: 此 Secret 的名称
## 命名空间
namespace: 此 Secret 所属命名空间
# 类型
type: Opaque
# 数据( UTF-8 字节类型)
stringData:
key_name_1: key_value_1
key_name-2: key_value_2
# 数据( base64 编码类型数据)
data:
key_name_a: a2V5X3ZhbHVlX2E=
key_name_b: a2V5X3ZhbHVlX2I=
# 配置此 Secret 为不可变更(此 Secret 创建后,内容将不可变更,想要变更内容时,只能将此 Secret 删除后重建)
immutable: true