Change chart
This commit is contained in:
parent
e932269f04
commit
4b32e554dc
|
@ -1,3 +1,3 @@
|
|||
apiVersion: v2
|
||||
name: newsite
|
||||
version: v0.0.1
|
||||
version: v0.0.2
|
|
@ -1,11 +1,11 @@
|
|||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: {{ .Values.ingress.name }}
|
||||
name: {{ tpl .Values.ingress.name . }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
{{- with .Values.ingress.annotations }}
|
||||
annotations:
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- tpl (. | toYaml) $ | nindent 4 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
ingressClassName: {{ .Values.ingress.className }}
|
||||
|
@ -14,14 +14,14 @@ spec:
|
|||
{{- range .Values.ingress.tls }}
|
||||
- hosts:
|
||||
{{- range .hosts }}
|
||||
- {{ . | quote }}
|
||||
- {{ tpl . $ | quote }}
|
||||
{{- end }}
|
||||
secretName: {{ .secretName }}
|
||||
secretName: {{ tpl (.secretName | toYaml) $ }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
rules:
|
||||
{{- range .Values.ingress.hosts }}
|
||||
- host: {{ .host | quote }}
|
||||
- host: {{ tpl .host $ | quote }}
|
||||
http:
|
||||
paths:
|
||||
{{- range .paths }}
|
||||
|
@ -29,7 +29,7 @@ spec:
|
|||
pathType: {{ .pathType }}
|
||||
backend:
|
||||
service:
|
||||
name: {{ $.Values.service.name }}
|
||||
name: {{ tpl $.Values.service.name $ }}
|
||||
port:
|
||||
number: 8000
|
||||
{{- end }}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ .Values.service.name }}
|
||||
name: {{ tpl .Values.service.name . }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
{{- with .Values.service.annotations }}
|
||||
annotations:
|
||||
|
|
|
@ -1,23 +1,24 @@
|
|||
baseURL: quenten.nl
|
||||
name: newsite-prod
|
||||
containerEnv:
|
||||
- name: APIURL
|
||||
value: https://api.quenten.nl/api
|
||||
service:
|
||||
name: newsite-prod
|
||||
name: "{{ .Values.name }}"
|
||||
ingress:
|
||||
name: newsite-prod
|
||||
name: "{{ .Values.name }}"
|
||||
annotations:
|
||||
cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||
external-dns.alpha.kubernetes.io/hostname: "quenten.nl"
|
||||
cert-manager.io/cluster-issuer: "letsencrypt-{{ .Values.name }}"
|
||||
external-dns.alpha.kubernetes.io/hostname: "{{ .Values.baseURL }}"
|
||||
nginx.ingress.kubernetes.io/configuration-snippet: |
|
||||
add_header Content-Security-Policy "frame-ancestors 'self' https://forestofunix.xyz";
|
||||
proxy_hide_header X-Frame-Options ;
|
||||
tls:
|
||||
- hosts:
|
||||
- quenten.nl
|
||||
secretName: newsite-tls
|
||||
- "{{ .Values.baseURL }}"
|
||||
secretName: "{{ .Values.name }}-tls"
|
||||
hosts:
|
||||
- host: quenten.nl
|
||||
- host: "{{ .Values.baseURL }}"
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
|
@ -1,23 +1,24 @@
|
|||
baseURL: staging.quenten.nl
|
||||
name: newsite-staging
|
||||
containerEnv:
|
||||
- name: APIURL
|
||||
value: https://api.quenten.nl/api/testing
|
||||
service:
|
||||
name: newsite-staging
|
||||
name: "{{ .Values.name }}"
|
||||
ingress:
|
||||
name: newsite-staging
|
||||
name: "{{ .Values.name }}"
|
||||
annotations:
|
||||
cert-manager.io/cluster-issuer: letsencrypt-staging
|
||||
external-dns.alpha.kubernetes.io/hostname: "staging.quenten.nl"
|
||||
cert-manager.io/cluster-issuer: "letsencrypt-{{ .Values.name }}"
|
||||
external-dns.alpha.kubernetes.io/hostname: "{{ .Values.baseURL }}"
|
||||
nginx.ingress.kubernetes.io/configuration-snippet: |
|
||||
add_header Content-Security-Policy "frame-ancestors 'self' https://forestofunix.xyz";
|
||||
proxy_hide_header X-Frame-Options ;
|
||||
tls:
|
||||
- hosts:
|
||||
- staging.quenten.nl
|
||||
secretName: newsite-staging-tls
|
||||
- "{{ .Values.baseURL }}"
|
||||
secretName: "{{ .Values.name }}-tls"
|
||||
hosts:
|
||||
- host: staging.quenten.nl
|
||||
- host: "{{ .Values.baseURL }}"
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
Loading…
Reference in New Issue