templates/deployment.yaml を更新
This commit is contained in:
@@ -110,7 +110,6 @@ spec:
|
||||
if [ -z "$WP_ADMIN_PASSWORD" ]; then
|
||||
WP_ADMIN_PASSWORD=$(tr -dc 'A-Za-z0-9!@#$%^&*' < /dev/urandom | head -c 16)
|
||||
echo "Generated admin password: $WP_ADMIN_PASSWORD"
|
||||
# パスワードを永続化領域に保存(初回のみ)
|
||||
echo "$WP_ADMIN_PASSWORD" > /var/www/html-persistent/.initial-admin-password
|
||||
fi
|
||||
|
||||
@@ -141,7 +140,6 @@ spec:
|
||||
fi
|
||||
fi
|
||||
|
||||
# ads.txt の配置(使い捨てファイル領域に)
|
||||
{{- if .Values.wordpress.adsTxt.enabled }}
|
||||
echo "Deploying ads.txt..."
|
||||
cat > /var/www/html/ads.txt <<'ADSTXT'
|
||||
@@ -226,7 +224,6 @@ spec:
|
||||
securityContext:
|
||||
runAsUser: 82
|
||||
runAsGroup: 82
|
||||
fsGroup: 82
|
||||
containers:
|
||||
- name: nginx
|
||||
image: "{{ .Values.image.nginx.registry }}/{{ .Values.image.nginx.repository }}:{{ .Values.image.nginx.tag }}"
|
||||
|
||||
Reference in New Issue
Block a user