docs: pin deployment example image and fix config

This fixes issue #28 in which the pod fails to start due to a duplicate
directive; it also pins the nginx version to avoid further breaking
changes.
This commit is contained in:
Bryton Hall 2023-07-05 20:59:52 -04:00
parent e77a3898de
commit 60a5a28db7

View file

@ -10,7 +10,7 @@
spec = { spec = {
securityContext.fsGroup = 1000; securityContext.fsGroup = 1000;
containers.nginx = { containers.nginx = {
image = "nginx"; image = "nginx:1.25.1";
imagePullPolicy = "IfNotPresent"; imagePullPolicy = "IfNotPresent";
volumeMounts = { volumeMounts = {
"/etc/nginx".name = "config"; "/etc/nginx".name = "config";
@ -28,7 +28,6 @@
configMaps = { configMaps = {
nginx-config.data."nginx.conf" = '' nginx-config.data."nginx.conf" = ''
user nginx nginx; user nginx nginx;
daemon off;
error_log /dev/stdout info; error_log /dev/stdout info;
pid /dev/null; pid /dev/null;
events {} events {}