33 lines
997 B
YAML
33 lines
997 B
YAML
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
kind: Kustomization
|
|
resources:
|
|
- https://forgejo.mixinet.net/blogops/argocd-applications.git//dummyhttp/?ref=dummyhttp-v1.0.0
|
|
# Add the config map
|
|
configMapGenerator:
|
|
- name: dummyhttp-configmap
|
|
literals:
|
|
- CM_VAR="Vcluster Test Value"
|
|
behavior: create
|
|
options:
|
|
disableNameSuffixHash: true
|
|
patches:
|
|
# Change the ingress host name
|
|
- target:
|
|
kind: Ingress
|
|
name: dummyhttp
|
|
patch: |-
|
|
- op: replace
|
|
path: /spec/rules/0/host
|
|
value: vcluster-dummyhttp.lo.mixinet.net
|
|
# Add reloader annotations -- it will only work if we install reloader on the
|
|
# virtual cluster, as the one on the host cluster doesn't see the vcluster
|
|
# deployment objects
|
|
- target:
|
|
kind: Deployment
|
|
name: dummyhttp
|
|
patch: |-
|
|
- op: add
|
|
path: /metadata/annotations
|
|
value:
|
|
reloader.stakater.com/auto: "true"
|
|
reloader.stakater.com/rollout-strategy: "restart"
|