Skip to content

Commit 173230e

Browse files
committed
added a location to place custom nginx configurations into container.
update rollingUpdate settings for deployment
1 parent d272080 commit 173230e

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

docker/files/nginx.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,5 +130,8 @@ http {
130130
gzip_buffers 16 8k;
131131
gzip_http_version 1.1;
132132
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
133+
134+
# support custom includes
135+
include /app/nginx/*.conf;
133136
}
134137
}

docker/files/run.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ password $SMTP_PASS
2525
EOT
2626

2727
# nginx
28+
mkdir -p /app/nginx
2829
mkdir -p /app/logs/nginx
2930
mkdir -p /tmp/nginx
3031
chown nginx:nginx /tmp/nginx

kubernetes/wordpress-deployment.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ metadata:
2222
site: example-website
2323
spec:
2424
replicas: 1
25+
strategy:
26+
rollingUpdate:
27+
maxSurge: 1
28+
maxUnavailable: 0
2529
template:
2630
metadata:
2731
labels:

0 commit comments

Comments
 (0)