Initial commit.
This commit is contained in:
commit
840bd2e12a
10 changed files with 322 additions and 0 deletions
33
apps/dummyhttp/kustomization.yaml
Normal file
33
apps/dummyhttp/kustomization.yaml
Normal file
|
@ -0,0 +1,33 @@
|
|||
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"
|
17
apps/reloader/kustomization.yaml
Normal file
17
apps/reloader/kustomization.yaml
Normal file
|
@ -0,0 +1,17 @@
|
|||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
namespace: kube-system
|
||||
resources:
|
||||
- github.com/stakater/Reloader/deployments/kubernetes/?ref=v1.4.2
|
||||
patches:
|
||||
# Add flags to reload workloads when ConfigMaps or Secrets are created or deleted
|
||||
- target:
|
||||
kind: Deployment
|
||||
name: reloader-reloader
|
||||
patch: |-
|
||||
- op: add
|
||||
path: /spec/template/spec/containers/0/args
|
||||
value:
|
||||
- '--reload-on-create=true'
|
||||
- '--reload-on-delete=true'
|
||||
- '--reload-strategy=annotations'
|
Loading…
Add table
Add a link
Reference in a new issue