add kustomize

This commit is contained in:
2023-03-15 11:24:41 +07:00
parent 5ffd029bee
commit f42422262a
18 changed files with 293 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../base
- namespace.yaml
namespace: prod
labels:
- includeSelectors: true
pairs:
env: prod
patches:
- path: deployment.yaml
- path: configmap.yaml
images:
- name: nginx
newName: httpd
newTag: "alpine3.17"
secretGenerator:
- name: secret
envs:
- foo.env
files:
- longsecret.txt
literals:
- FRUIT=pinapple
- VEGETABLE=potato