edit dashboard deployment to allow for a staging deployment

This commit is contained in:
Aaron Riedel 2023-09-21 23:54:34 +02:00
parent 645d4934f2
commit 0b80495eb2
Signed by: aaron
GPG key ID: 643004654D40D577
7 changed files with 404 additions and 9 deletions

View file

@ -0,0 +1,9 @@
resources:
- ../../base
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
images:
- name: yolokube/dashboard
newName: yolokube/dashboard
newTag: "228"
namespace: dashboard

View file

@ -0,0 +1,24 @@
resources:
- ../../base
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
images:
- name: yolokube/dashboard
newName: yolokube/dashboard
newTag: "228"
namespace: dashboard-staging
patches:
- target:
kind: Ingress
name: dashboard-ingress
patch: |-
- op: replace
path: /spec/rules/0/host
value: "dashboard-staging.services.yolokube.de"
- target:
kind: Deployment
name: dashboard-deployment
patch: |-
- op: replace
path: /spec/replicas
value: 1