Change chart

This commit is contained in:
DutchEllie 2022-06-29 15:06:12 +02:00
parent e932269f04
commit 4b32e554dc
Signed by: DutchEllie
SSH Key Fingerprint: SHA256:dKq6ZSgN5E3Viqrw/+xAdf2VdR6hdRGNyrYqXXwfjTY
5 changed files with 24 additions and 22 deletions

View File

@ -1,3 +1,3 @@
apiVersion: v2 apiVersion: v2
name: newsite name: newsite
version: v0.0.1 version: v0.0.2

View File

@ -1,11 +1,11 @@
apiVersion: networking.k8s.io/v1 apiVersion: networking.k8s.io/v1
kind: Ingress kind: Ingress
metadata: metadata:
name: {{ .Values.ingress.name }} name: {{ tpl .Values.ingress.name . }}
namespace: {{ .Release.Namespace }} namespace: {{ .Release.Namespace }}
{{- with .Values.ingress.annotations }} {{- with .Values.ingress.annotations }}
annotations: annotations:
{{- toYaml . | nindent 4 }} {{- tpl (. | toYaml) $ | nindent 4 }}
{{- end }} {{- end }}
spec: spec:
ingressClassName: {{ .Values.ingress.className }} ingressClassName: {{ .Values.ingress.className }}
@ -14,14 +14,14 @@ spec:
{{- range .Values.ingress.tls }} {{- range .Values.ingress.tls }}
- hosts: - hosts:
{{- range .hosts }} {{- range .hosts }}
- {{ . | quote }} - {{ tpl . $ | quote }}
{{- end }} {{- end }}
secretName: {{ .secretName }} secretName: {{ tpl (.secretName | toYaml) $ }}
{{- end }} {{- end }}
{{- end }} {{- end }}
rules: rules:
{{- range .Values.ingress.hosts }} {{- range .Values.ingress.hosts }}
- host: {{ .host | quote }} - host: {{ tpl .host $ | quote }}
http: http:
paths: paths:
{{- range .paths }} {{- range .paths }}
@ -29,7 +29,7 @@ spec:
pathType: {{ .pathType }} pathType: {{ .pathType }}
backend: backend:
service: service:
name: {{ $.Values.service.name }} name: {{ tpl $.Values.service.name $ }}
port: port:
number: 8000 number: 8000
{{- end }} {{- end }}

View File

@ -1,7 +1,7 @@
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: {{ .Values.service.name }} name: {{ tpl .Values.service.name . }}
namespace: {{ .Release.Namespace }} namespace: {{ .Release.Namespace }}
{{- with .Values.service.annotations }} {{- with .Values.service.annotations }}
annotations: annotations:

View File

@ -1,23 +1,24 @@
baseURL: quenten.nl
name: newsite-prod name: newsite-prod
containerEnv: containerEnv:
- name: APIURL - name: APIURL
value: https://api.quenten.nl/api value: https://api.quenten.nl/api
service: service:
name: newsite-prod name: "{{ .Values.name }}"
ingress: ingress:
name: newsite-prod name: "{{ .Values.name }}"
annotations: annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod cert-manager.io/cluster-issuer: "letsencrypt-{{ .Values.name }}"
external-dns.alpha.kubernetes.io/hostname: "quenten.nl" external-dns.alpha.kubernetes.io/hostname: "{{ .Values.baseURL }}"
nginx.ingress.kubernetes.io/configuration-snippet: | nginx.ingress.kubernetes.io/configuration-snippet: |
add_header Content-Security-Policy "frame-ancestors 'self' https://forestofunix.xyz"; add_header Content-Security-Policy "frame-ancestors 'self' https://forestofunix.xyz";
proxy_hide_header X-Frame-Options ; proxy_hide_header X-Frame-Options ;
tls: tls:
- hosts: - hosts:
- quenten.nl - "{{ .Values.baseURL }}"
secretName: newsite-tls secretName: "{{ .Values.name }}-tls"
hosts: hosts:
- host: quenten.nl - host: "{{ .Values.baseURL }}"
paths: paths:
- path: / - path: /
pathType: Prefix pathType: Prefix

View File

@ -1,23 +1,24 @@
baseURL: staging.quenten.nl
name: newsite-staging name: newsite-staging
containerEnv: containerEnv:
- name: APIURL - name: APIURL
value: https://api.quenten.nl/api/testing value: https://api.quenten.nl/api/testing
service: service:
name: newsite-staging name: "{{ .Values.name }}"
ingress: ingress:
name: newsite-staging name: "{{ .Values.name }}"
annotations: annotations:
cert-manager.io/cluster-issuer: letsencrypt-staging cert-manager.io/cluster-issuer: "letsencrypt-{{ .Values.name }}"
external-dns.alpha.kubernetes.io/hostname: "staging.quenten.nl" external-dns.alpha.kubernetes.io/hostname: "{{ .Values.baseURL }}"
nginx.ingress.kubernetes.io/configuration-snippet: | nginx.ingress.kubernetes.io/configuration-snippet: |
add_header Content-Security-Policy "frame-ancestors 'self' https://forestofunix.xyz"; add_header Content-Security-Policy "frame-ancestors 'self' https://forestofunix.xyz";
proxy_hide_header X-Frame-Options ; proxy_hide_header X-Frame-Options ;
tls: tls:
- hosts: - hosts:
- staging.quenten.nl - "{{ .Values.baseURL }}"
secretName: newsite-staging-tls secretName: "{{ .Values.name }}-tls"
hosts: hosts:
- host: staging.quenten.nl - host: "{{ .Values.baseURL }}"
paths: paths:
- path: / - path: /
pathType: Prefix pathType: Prefix