How can I patch the podinfo kustomization of the Get Started example? #1133
-
I've created the podinfo kustomization following the Flux v2 Get Started example. It applies the three manifests from the upstream podinfo As a first test I then wanted to increase the Now I'm wondering: What's best way to patch/overlay the upstream manifests using kustomize's Would I place my own |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hey @knweiss, apiVersion: kustomize.toolkit.fluxcd.io/v1beta1
kind: Kustomization
metadata:
name: podinfo
namespace: flux-system
spec:
interval: 5m0s
path: ./kustomize
prune: true
sourceRef:
kind: GitRepository
name: podinfo
validation: client
patchesStrategicMerge:
- apiVersion: autoscaling/v2beta2
kind: HorizontalPodAutoscaler
metadata:
name: podinfo
spec:
minReplicas: 3 |
Beta Was this translation helpful? Give feedback.
Hey @knweiss,
You can add the patch in the
patchesMergeStrategic
field in theKustomization
.E.g