kustomize secret 예시

Jmnote (토론 | 기여)님의 2024년 6월 5일 (수) 13:13 판 (→‎같이 보기)

1 개요

kustomize secret 예시

2 예시1: patchesStrategicMerge 사용

secret.yaml
apiVersion: v1
kind: Secret
metadata:
  name: my-secret
type: Opaque
data:
  username: YWRtaW4=             # admin
  password: MWYyZDFlMzU5ZjZmY2Jk # 1f2d1e359f6fcbd
kustomization.yaml
resources:
- secret.yaml

patchesStrategicMerge:
- patch.yaml
patch.yaml
apiVersion: v1
kind: Secret
metadata:
  name: my-secret
type: Opaque
stringData:
  username: newadmin
  password: new1f2d1e359f6fc6bd

3 예시2: secretGenerator 사용

kustomization.yaml
secretGenerator:
- name: my-secret
  literals:
  - username=admin
  - password=1f2d1e359f6fcbd

4 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}