Skip to content

Instantly share code, notes, and snippets.

@icy
Created December 13, 2019 08:06
Show Gist options
  • Save icy/cb7a2d1c807defd507763d76b92f5171 to your computer and use it in GitHub Desktop.
Save icy/cb7a2d1c807defd507763d76b92f5171 to your computer and use it in GitHub Desktop.
kustomize-json-patch-complex.yaml
resources:
- ../local-end2end
- test-end2end.yaml
namePrefix: RESOURCE_PREFIX_
commonLabels:
mineHashId: IMAGE_TAG
patches:
- patches.yaml
patchesJson6902:
- &foo
target: &fooT
group: extensions
version: v1beta1
kind: Deployment
name: guardian-grpc
patch: |-
- op: replace
path: /spec/template/spec/nodeSelector/mine~1group
value: local
- <<: *foo
target:
<<: *fooT
name: hawk-config-grpc
- <<: *foo
target:
<<: *fooT
name: coral
- <<: *foo
target:
<<: *fooT
name: hawk-gateway
- <<: *foo
target:
<<: *fooT
name: hawk-synonyms-grpc
- <<: *foo
target:
<<: *fooT
name: hawk-grpc
# System services
- <<: *foo
target:
<<: *fooT
name: redis
- <<: *foo
target:
<<: *fooT
name: elasticsearch
- <<: *foo
target:
<<: *fooT
name: postgres
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment