Add release name into domain

This commit is contained in:
Nico Schottelius 2021-06-19 20:11:19 +02:00
parent e49241afce
commit abef1d9c38
4 changed files with 8 additions and 8 deletions

View file

@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.1
version: 0.1.2
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to

View file

@ -17,7 +17,7 @@ spec:
- containerPort: 80
env:
- name: DOMAIN
value: "{{ .Values.serviceName }}.{{ .Release.Namespace }}.svc.{{ .Values.clusterDomain }}"
value: "{{ .Release.Name }}-{{ .Values.serviceName }}.{{ .Release.Namespace }}.svc.{{ .Values.clusterDomain }}"
- name: EMAIL
value: "{{ .Values.email }}"
volumeMounts:

View file

@ -9,10 +9,10 @@ data:
listen 443 ssl;
listen [::]:443 ssl;
server_name {{ .Values.serviceName }}.{{ .Release.Namespace }}.svc.{{ .Values.clusterDomain }};
server_name {{ .Release.Name }}-{{ .Values.serviceName }}.{{ .Release.Namespace }}.svc.{{ .Values.clusterDomain }};
ssl_certificate /etc/letsencrypt/live/{{ .Values.serviceName }}.{{ .Release.Namespace }}.svc.{{ .Values.clusterDomain }}/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/{{ .Values.serviceName }}.{{ .Release.Namespace }}.svc.{{ .Values.clusterDomain }}/privkey.pem;
ssl_certificate /etc/letsencrypt/live/{{ .Release.Name }}-{{ .Values.serviceName }}.{{ .Release.Namespace }}.svc.{{ .Values.clusterDomain }}/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/{{ .Release.Name }}-{{ .Values.serviceName }}.{{ .Release.Namespace }}.svc.{{ .Values.clusterDomain }}/privkey.pem;
client_max_body_size 256m;

View file

@ -20,7 +20,7 @@ spec:
- containerPort: 80
- containerPort: 443
volumeMounts:
- name: nginx-config-443
- name: nginx-config
mountPath: "/etc/nginx/conf.d/"
- name: etcletsencrypt
mountPath: "/etc/letsencrypt"
@ -40,9 +40,9 @@ spec:
apiVersion: v1
kind: Service
metadata:
name: {{ .Release.Name }}-tls1
name: {{ .Release.Name }}-{{ .Values.serviceName }}
labels:
app: {{ .Release.Name }}-tls1
app: {{ .Release.Name }}-{{ .Values.serviceName }}
spec:
type: ClusterIP
ports: