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