Skip to content

Commit

Permalink
Fix Kustomize for multicluster demo
Browse files Browse the repository at this point in the history
  • Loading branch information
bmarick committed Apr 19, 2024
1 parent 22f831f commit c4689e8
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 20 deletions.
11 changes: 7 additions & 4 deletions multicluster/base/kustomization.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
bases:
- github.com/stefanprodan/podinfo/kustomize?ref=4.0.2

resources:
- github.com/stefanprodan/podinfo/kustomize?ref=4.0.2
- frontend.yml
- ns.yml

patches:
- patch.yml
- target:
group: apps
version: v1
kind: Deployment
name: podinfo
path: patch-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,3 @@ spec:
- name: podinfod
securityContext:
runAsUser: 1337
---
apiVersion: v1
kind: Service
metadata:
name: podinfo
---
apiVersion: autoscaling/v2beta1
kind: HorizontalPodAutoscaler
metadata:
name: podinfo
16 changes: 13 additions & 3 deletions multicluster/east/kustomization.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
bases:
resources:
- ../base

patches:
- podinfo.yml
- frontend.yml
- target:
group: apps
version: v1
kind: Deployment
name: podinfo
path: podinfo.yml
- target:
group: apps
version: v1
kind: Deployment
name: frontend
path: frontend.yml
16 changes: 13 additions & 3 deletions multicluster/west/kustomization.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
bases:
resources:
- ../base

patches:
- podinfo.yml
- frontend.yml
- target:
group: apps
version: v1
kind: Deployment
name: podinfo
path: podinfo.yml
- target:
group: apps
version: v1
kind: Deployment
name: frontend
path: frontend.yml

0 comments on commit c4689e8

Please sign in to comment.