mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
92 lines
2.7 KiB
YAML
92 lines
2.7 KiB
YAML
apiVersion: extensions/v1beta1
|
|
kind: Deployment
|
|
metadata:
|
|
name: {{ template "fullname" . }}
|
|
labels:
|
|
app: {{ template "fullname" . }}
|
|
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
|
|
release: "{{ .Release.Name }}"
|
|
heritage: "{{ .Release.Service }}"
|
|
spec:
|
|
replicas: 1
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: {{ template "fullname" . }}
|
|
spec:
|
|
containers:
|
|
- name: {{ template "fullname" . }}
|
|
image: "{{ .Values.image }}"
|
|
imagePullPolicy: {{ default "" .Values.imagePullPolicy | quote }}
|
|
env:
|
|
- name: MARIADB_HOST
|
|
value: {{ template "mariadb.fullname" . }}
|
|
- name: MARIADB_PORT
|
|
value: "3306"
|
|
- name: MARIADB_PASSWORD
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: {{ template "mariadb.fullname" . }}
|
|
key: mariadb-root-password
|
|
- name: PHPBB_USERNAME
|
|
value: {{ default "" .Values.phpbbUser | quote }}
|
|
- name: PHPBB_PASSWORD
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: {{ template "fullname" . }}
|
|
key: phpbb-password
|
|
- name: PHPBB_EMAIL
|
|
value: {{ default "" .Values.phpbbEmail | quote }}
|
|
- name: SMTP_HOST
|
|
value: {{ default "" .Values.smtpHost | quote }}
|
|
- name: SMTP_PORT
|
|
value: {{ default "" .Values.smtpPort | quote }}
|
|
- name: SMTP_USER
|
|
value: {{ default "" .Values.smtpUser | quote }}
|
|
- name: SMTP_PASSWORD
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: {{ template "fullname" . }}
|
|
key: smtp-password
|
|
- name: SMTP_PROTOCOL
|
|
value: {{ default "" .Values.smtpProtocol | quote }}
|
|
ports:
|
|
- name: http
|
|
containerPort: 80
|
|
- name: https
|
|
containerPort: 443
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: http
|
|
initialDelaySeconds: 120
|
|
timeoutSeconds: 5
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: http
|
|
initialDelaySeconds: 5
|
|
timeoutSeconds: 1
|
|
resources:
|
|
{{ toYaml .Values.resources | indent 10 }}
|
|
volumeMounts:
|
|
- name: phpbb-data
|
|
mountPath: /bitnami/phpbb
|
|
- name: apache-data
|
|
mountPath: /bitnami/apache
|
|
volumes:
|
|
- name: phpbb-data
|
|
{{- if .Values.persistence.enabled }}
|
|
persistentVolumeClaim:
|
|
claimName: {{ template "fullname" . }}-phpbb
|
|
{{- else }}
|
|
emptyDir: {}
|
|
{{- end }}
|
|
- name: apache-data
|
|
{{- if .Values.persistence.enabled }}
|
|
persistentVolumeClaim:
|
|
claimName: {{ template "fullname" . }}-apache
|
|
{{- else }}
|
|
emptyDir: {}
|
|
{{- end }}
|