The delegation nginx image was hardcoded as nginx:1.28.3 in the deployment template. It is now rendered from the new values matrix.delegation.image.repository / matrix.delegation.image.tag, defaulting to nginx:1.30.4 (current stable line, tag verified against Docker Hub). README documents that auxiliary/sidecar images are pinned via values and reviewed with every app-version update round. Chart version: 4.1.1+upv1.159.0 -> 4.2.0+upv1.159.0 (minor: additive values change).
74 lines
2.6 KiB
YAML
74 lines
2.6 KiB
YAML
{{- if .Values.matrix.delegation.enabled }}
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: {{ .Release.Name }}-{{ .Chart.Name }}-delegation-nginx
|
|
labels:
|
|
app: {{ .Release.Name }}-{{ .Chart.Name }}-delegation-nginx
|
|
spec:
|
|
replicas: {{ include "matrix-synapse.replicas" (dict "scaleDown" .Values.scaleDown "replicas" .Values.matrix.delegation.replicas) }}
|
|
selector:
|
|
matchLabels:
|
|
app: {{ .Release.Name }}-{{ .Chart.Name }}-delegation-nginx
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: {{ .Release.Name }}-{{ .Chart.Name }}-delegation-nginx
|
|
spec:
|
|
automountServiceAccountToken: false
|
|
securityContext:
|
|
{{- toYaml .Values.matrix.delegation.securityContext.pod | nindent 8 }}
|
|
containers:
|
|
- name: {{ .Release.Name }}-{{ .Chart.Name }}-delegation-nginx
|
|
image: "{{ .Values.matrix.delegation.image.repository }}:{{ .Values.matrix.delegation.image.tag }}"
|
|
securityContext:
|
|
{{- toYaml .Values.matrix.delegation.securityContext.container | nindent 12 }}
|
|
ports:
|
|
- containerPort: 8080
|
|
name: http
|
|
volumeMounts:
|
|
- name: nginx-config
|
|
mountPath: /etc/nginx/nginx.conf
|
|
subPath: nginx.conf
|
|
# The mounted nginx.conf points the pid file and all temp paths to
|
|
# /tmp, so a single writable emptyDir suffices with a read-only
|
|
# root filesystem.
|
|
- name: tmp
|
|
mountPath: /tmp
|
|
resources:
|
|
{{- include "matrix-synapse.resources" .Values.matrix.delegation.resources | nindent 12 }}
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /.well-known/matrix/server
|
|
port: http
|
|
scheme: HTTP
|
|
periodSeconds: 10
|
|
timeoutSeconds: 3
|
|
failureThreshold: 3
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /.well-known/matrix/server
|
|
port: http
|
|
scheme: HTTP
|
|
periodSeconds: 10
|
|
timeoutSeconds: 3
|
|
failureThreshold: 3
|
|
# The startup probe gates liveness/readiness. Startup budget = 5s * 30 = 150s.
|
|
startupProbe:
|
|
httpGet:
|
|
path: /.well-known/matrix/server
|
|
port: http
|
|
scheme: HTTP
|
|
periodSeconds: 5
|
|
timeoutSeconds: 3
|
|
failureThreshold: 30
|
|
volumes:
|
|
- name: tmp
|
|
emptyDir: {}
|
|
- name: nginx-config
|
|
configMap:
|
|
name: {{ .Release.Name }}-{{ .Chart.Name }}-delegation-nginx-config
|
|
items:
|
|
- key: nginx.conf
|
|
path: nginx.conf
|
|
{{- end }} |