add kustomize example

This commit is contained in:
Stephan Girod
2021-03-31 17:26:56 +02:00
parent bddc753b6f
commit a4f8b430c7
8 changed files with 138 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: overlays-example
spec:
replicas: 4

View File

@@ -0,0 +1,20 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
bases:
- ../../base
commonLabels:
appStageTag: production
generatorOptions:
# commonLabels will not be respected by generator
labels:
app: overlays-example
app.kubernetes.io/managed-by: kustomize
appStageTag: production
patchesStrategicMerge:
- deploymentconfig.yaml
# - service.yaml