修改镜像:
cd $DEMO_HOME
kustomize edit set image busybox=alpine:3.6
添加secret:
$ kustomize edit add secret sl-demo-app --from-literal=db-password=12345
$ cat kustomization.yaml
resources:
- pod.yaml
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
images:
- name: busybox
newName: alpine
newTag: "3.6"
secretGenerator:
- literals:
- db-password=12345
name: sl-demo-app
type: Opaque
参考链接:https://blog.csdn.net/xixihahalelehehe/article/details/111042577