- Add apps/myapp/base with deployment, service, httproute - Add apps/myapp/overlays/staging (1 replica, 128Mi/256Mi, staging hostname) - Add apps/myapp/overlays/production (2 replicas, 256Mi/512Mi, prod hostname) - Remove old apps/sample-webapp structure Structure follows folder-per-environment pattern with Kustomize overlays.
16 lines
227 B
YAML
16 lines
227 B
YAML
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
kind: Kustomization
|
|
|
|
namespace: myapp-production
|
|
|
|
resources:
|
|
- ../../base
|
|
|
|
patches:
|
|
- path: deployment-patch.yaml
|
|
- path: httproute-patch.yaml
|
|
|
|
images:
|
|
- name: nginx
|
|
newTag: alpine
|