Skip to content

Commit

Permalink
Multicluster kustomize fix for demo (#1815)
Browse files Browse the repository at this point in the history
* Fix Kustomize for multicluster demo

Signed-off-by: Brandon Marick <[email protected]>

* fix(autoscaler): Should use autoscaling/v2, not autoscaling/v2beta1 which was removed in 1.26

Signed-off-by: dark0dave <[email protected]>

---------

Signed-off-by: Brandon Marick <[email protected]>
Signed-off-by: dark0dave <[email protected]>
Co-authored-by: Brandon Marick <[email protected]>
Co-authored-by: Flynn <[email protected]>
  • Loading branch information
3 people authored Aug 8, 2024
1 parent b155e52 commit bf8885b
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=6.7.0
- 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 bf8885b

Please sign in to comment.