Skip to content

Commit

Permalink
Update Nginx Helm chart to include a new volume for /var/run and /var…
Browse files Browse the repository at this point in the history
…/cache/nginx
  • Loading branch information
simlarsen committed Apr 20, 2024
1 parent 9fb68af commit 6910648
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions HelmChart/Public/oneuptime/templates/nginx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# OneUptime nginx Deployment
{{- $runDir := dict "SizeLimit" "1Gi" "MountPath" "/var/run" -}}
{{- $confDir := dict "SizeLimit" "1Gi" "MountPath" "/etc/nginx/conf.d" -}}
{{- $nginxCache := dict "SizeLimit" "1Gi" "MountPath" "/var/cache/nginx" -}}
{{- $statusPageCertsVolume := dict "SizeLimit" "1Gi" "MountPath" "/etc/nginx/certs/StatusPageCerts" -}}
{{- $nginxVolumes := dict "status-page-certs" $statusPageCertsVolume "cache" $nginxCache "conf" $confDir "run" $runDir -}}
{{- $cacheDir := dict "SizeLimit" "1Gi" "MountPath" "/var/cache/nginx" -}}
{{- $statusPageCertsDir := dict "SizeLimit" "1Gi" "MountPath" "/etc/nginx/certs/StatusPageCerts" -}}
{{- $nginxVolumes := dict "status-page-certs" $statusPageCertsDir "cache" $cacheDir "conf" $confDir "run" $runDir -}}
{{- $nginxPorts := dict "http" "7849" "https" "7850" -}}
{{- $nginxDeploymentArgs :=dict "IsServer" true "Ports" $nginxPorts "ServiceName" "nginx" "Release" $.Release "Values" $.Values "Volumes" $nginxVolumes -}}
{{- include "oneuptime.deployment" $nginxDeploymentArgs }}
Expand Down

0 comments on commit 6910648

Please sign in to comment.