| 1234567891011121314151617181920212223242526272829303132333435363738 |
- apiVersion: apps/v1
- kind: StatefulSet
- metadata:
- name: {{ include "chart.fullname" . }}
- namespace: {{ include "chart.namespace" . }}
- labels:
- {{- include "chart.labels" . | nindent 4 }}
- spec:
- serviceName: {{ include "chart.fullname" . }}
- replicas: {{ .Values.replicaCount }}
- selector:
- matchLabels:
- {{- include "chart.selector" . | nindent 6 }}
- template:
- metadata:
- labels:
- {{- include "chart.selector" . | nindent 8 }}
- spec:
- nodeSelector:
- {{- toYaml .Values.nodeSelector | nindent 8 }}
- tolerations:
- {{- toYaml .Values.tolerations | nindent 8 }}
- affinity:
- {{- toYaml .Values.affinity | nindent 8 }}
- containers:
- - name: php
- image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
- imagePullPolicy: {{ .Values.image.pullPolicy }}
- ports:
- - name: http
- containerPort: {{ .Values.service.targetPort }}
- volumeMounts:
- - name: data
- mountPath: /var/www/public_html
- volumes:
- - name: data
- persistentVolumeClaim:
- claimName: {{ include "chart.fullname" . }}-pvc
|