add kustomize
This commit is contained in:
27
6.Addons/kustomize/overlays/prod/kustomization.yaml
Normal file
27
6.Addons/kustomize/overlays/prod/kustomization.yaml
Normal 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
|
Reference in New Issue
Block a user