Skip to content
Snippets Groups Projects
Verified Commit e5b85a82 authored by Tom Teichler's avatar Tom Teichler :beers:
Browse files

Remove deprectatet kustomize dings

parent e1535280
No related branches found
No related tags found
1 merge request!50Add k8s deployment
...@@ -2,9 +2,11 @@ apiVersion: kustomize.config.k8s.io/v1beta1 ...@@ -2,9 +2,11 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
commonAnnotations: commonAnnotations:
source-repository: https://edugit.org/Teckids/team-pr/teckids.org source-repository: https://edugit.org/Teckids/team-pr/teckids.org
commonLabels:
app: teckids-website
resources: resources:
- deployment.yaml - deployment.yaml
- service.yaml - service.yaml
- ingress.yaml - ingress.yaml
labels:
- includeSelectors: true
pairs:
app: teckids-website
apiVersion: kustomize.config.k8s.io/v1beta1 apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
bases:
- ../../base
commonAnnotations: commonAnnotations:
source-repository: https://edugit.org/Teckids/team-pr/teckids.org source-repository: https://edugit.org/Teckids/team-pr/teckids.org
commonLabels:
app: teckids-website
environment: production
namespace: teckids-website namespace: teckids-website
patches: patches:
- target: - patch: |-
kind: Ingress
name: teckids-website-caddy
patch: |-
- op: replace - op: replace
path: /spec/rules/0/host path: /spec/rules/0/host
value: teckids.org value: teckids.org
- op: replace - op: replace
path: /spec/tls/0/hosts/0 path: /spec/tls/0/hosts/0
value: teckids.org value: teckids.org
target:
kind: Ingress
name: teckids-website-caddy
resources:
- ../../base
labels:
- includeSelectors: true
pairs:
app: teckids-website
environment: production
apiVersion: kustomize.config.k8s.io/v1beta1 apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
bases:
- ../../base
commonAnnotations: commonAnnotations:
source-repository: https://edugit.org/Teckids/team-pr/teckids.org source-repository: https://edugit.org/Teckids/team-pr/teckids.org
commonLabels:
app: teckids-website
environment: __REVIEW_NAME__
namespace: teckids-website namespace: teckids-website
patches: patches:
- target: - patch: |-
kind: Ingress
name: teckids-website-caddy
patch: |-
- op: replace - op: replace
path: /spec/rules/0/host path: /spec/rules/0/host
value: __REVIEW_NAME__.review.teckids.org value: __REVIEW_NAME__.review.teckids.org
...@@ -22,3 +14,13 @@ patches: ...@@ -22,3 +14,13 @@ patches:
- op: replace - op: replace
path: /spec/tls/0/secretName path: /spec/tls/0/secretName
value: __REVIEW_NAME__-website-tls value: __REVIEW_NAME__-website-tls
target:
kind: Ingress
name: teckids-website-caddy
resources:
- ../../base
labels:
- includeSelectors: true
pairs:
app: teckids-website
environment: __REVIEW_NAME__
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment