hello-app/base/kustomization.yaml
@@ -1,4 +1,12 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization namespace: kust-test resources: - deployment.yaml - service.yaml - route.yaml configurations: - namespace.yaml hello-app/base/namespace.yaml
New file @@ -0,0 +1,10 @@ namespace: - kind: Deployment path: metadata/namespace create: true - kind: Service path: metadata/namespace create: true - kind: Route path: metadata/namespace create: true hello-app/overlays/production/deployment-patch.yaml
@@ -2,6 +2,6 @@ kind: Deployment metadata: name: hello namespace: kust-prod namespace: kust-test spec: replicas: 4 hello-app/overlays/production/kustomization.yaml
@@ -1,3 +1,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization namespace: kust-prod bases: - ../../base patches: @@ -5,3 +9,5 @@ - service-patch.yaml - route-patch.yaml configurations: - namespace.yaml hello-app/overlays/production/namespace.yaml
New file @@ -0,0 +1,10 @@ namespace: - kind: Deployment path: metadata/namespace create: true - kind: Service path: metadata/namespace create: true - kind: Route path: metadata/namespace create: true hello-app/overlays/production/route-patch.yaml
@@ -2,6 +2,6 @@ kind: Route metadata: name: hello namespace: kust-prod namespace: kust-test spec: host: hello-prod.apps.ocp4.eenfach.de hello-app/overlays/production/service-patch.yaml
@@ -2,4 +2,4 @@ kind: Service metadata: name: hello namespace: kust-prod namespace: kust-test hello-app/overlays/qa/deployment-patch.yaml
@@ -2,6 +2,12 @@ kind: Deployment metadata: name: hello namespace: kust-qa namespace: kust-test labels: sky: blue spec: replicas: 2 template: metadata: labels: podlabel: newvalue hello-app/overlays/qa/kustomization.yaml
@@ -1,3 +1,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization namespace: kust-qa bases: - ../../base patches: @@ -5,3 +9,5 @@ - service-patch.yaml - route-patch.yaml configurations: - namespace.yaml hello-app/overlays/qa/namespace.yaml
New file @@ -0,0 +1,10 @@ namespace: - kind: Deployment path: metadata/namespace create: true - kind: Service path: metadata/namespace create: true - kind: Route path: metadata/namespace create: true hello-app/overlays/qa/route-patch.yaml
@@ -2,6 +2,6 @@ kind: Route metadata: name: hello namespace: kust-qa namespace: kust-test spec: host: hello-qa.apps.ocp4.eenfach.de hello-app/overlays/qa/service-patch.yaml
@@ -2,4 +2,4 @@ kind: Service metadata: name: hello namespace: kust-qa namespace: kust-test