templates/deployment.yaml を更新
This commit is contained in:
@@ -159,12 +159,6 @@ spec:
|
|||||||
/tmp/wp-cli.phar --path=/var/www/html core update-db 2>/dev/null || echo "No database update needed"
|
/tmp/wp-cli.phar --path=/var/www/html core update-db 2>/dev/null || echo "No database update needed"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
{{- if .Values.wordpress.adsTxt.enabled }}
|
|
||||||
|
|
||||||
echo "Deploying ads.txt..."
|
|
||||||
printf '%s\n' '{{ .Values.wordpress.adsTxt.content }}' > /var/www/html/ads.txt
|
|
||||||
echo "ads.txt deployed"
|
|
||||||
{{- end }}
|
|
||||||
|
|
||||||
echo "=== WordPress Initialization Completed ==="
|
echo "=== WordPress Initialization Completed ==="
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
@@ -262,6 +256,11 @@ spec:
|
|||||||
- name: nginx-config
|
- name: nginx-config
|
||||||
mountPath: /etc/nginx/conf.d/default.conf
|
mountPath: /etc/nginx/conf.d/default.conf
|
||||||
subPath: default.conf
|
subPath: default.conf
|
||||||
|
{{- if .Values.wordpress.adsTxt.enabled }}
|
||||||
|
- name: adstxt-config
|
||||||
|
mountPath: /var/www/html/ads.txt
|
||||||
|
subPath: ads.txt
|
||||||
|
{{- end }}
|
||||||
{{- if .Values.healthCheck.enabled }}
|
{{- if .Values.healthCheck.enabled }}
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
{{- toYaml .Values.healthCheck.livenessProbe | nindent 12 }}
|
{{- toYaml .Values.healthCheck.livenessProbe | nindent 12 }}
|
||||||
@@ -311,6 +310,11 @@ spec:
|
|||||||
- name: nginx-config
|
- name: nginx-config
|
||||||
configMap:
|
configMap:
|
||||||
name: {{ include "wordpress-nginx.fullname" . }}-nginx-config
|
name: {{ include "wordpress-nginx.fullname" . }}-nginx-config
|
||||||
|
{{- if .Values.wordpress.adsTxt.enabled }}
|
||||||
|
- name: adstxt-config
|
||||||
|
configMap:
|
||||||
|
name: {{ include "wordpress-nginx.fullname" . }}-adstxt
|
||||||
|
{{- end }}
|
||||||
{{- with .Values.nodeSelector }}
|
{{- with .Values.nodeSelector }}
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
|
|||||||
Reference in New Issue
Block a user