mirror of
https://github.com/truenas/charts.git
synced 2026-04-28 04:23:04 +08:00
* init commit * add deployments * more config * syntax err * syntax err * add missing func * naming * lint * fix yaml * yaml * ci vals * ci port * perms * wrong pod * hmm * meh * no nginx without cert * db stuf * simplify * add nots * fixes * add todo * storage * test https * perms * actually mount the config * add some configs * update values * fsgroup * cmaps * update config * init quests * more test vals * more questions * nginx conf * cron * fix cron * meta * typo * additional storage goes to cron too * data and html * config * ui * values * fix * add backwards compat * make templ * use var * init migration * make exec * add todo * handle hostpaths too * update storage for backwards * typo * add redis * cleaner storage solution * br * rm * some cleanup * backup * whops * fsgroup * fix db script * bump image * remove test * test * todo * try this * lets try a hack * hmm * nope * eof * ofc * hmm * fix * explain the hack * update vers * remove todo * fix html storage * backwards compat
69 lines
1.9 KiB
Smarty
69 lines
1.9 KiB
Smarty
{{- define "nginx.workload" -}}
|
|
{{- $fullname := (include "ix.v1.common.lib.chart.names.fullname" $) -}}
|
|
{{- $ncUrl := printf "http://%s:80" $fullname }}
|
|
workload:
|
|
nginx:
|
|
enabled: true
|
|
type: Deployment
|
|
podSpec:
|
|
hostNetwork: false
|
|
containers:
|
|
nginx:
|
|
enabled: true
|
|
primary: true
|
|
imageSelector: nginxImage
|
|
securityContext:
|
|
runAsUser: 0
|
|
runAsGroup: 0
|
|
runAsNonRoot: false
|
|
readOnlyRootFilesystem: false
|
|
capabilities:
|
|
add:
|
|
- CHOWN
|
|
- DAC_OVERRIDE
|
|
- FOWNER
|
|
- NET_BIND_SERVICE
|
|
- NET_RAW
|
|
- SETGID
|
|
- SETUID
|
|
probes:
|
|
liveness:
|
|
enabled: true
|
|
type: https
|
|
port: {{ .Values.ncNetwork.webPort }}
|
|
path: /status.php
|
|
httpHeaders:
|
|
Host: localhost
|
|
readiness:
|
|
enabled: true
|
|
type: https
|
|
port: {{ .Values.ncNetwork.webPort }}
|
|
path: /status.php
|
|
httpHeaders:
|
|
Host: localhost
|
|
startup:
|
|
enabled: true
|
|
type: https
|
|
port: {{ .Values.ncNetwork.webPort }}
|
|
path: /status.php
|
|
httpHeaders:
|
|
Host: localhost
|
|
initContainers:
|
|
01-wait-server:
|
|
enabled: true
|
|
type: init
|
|
imageSelector: bashImage
|
|
command:
|
|
- bash
|
|
args:
|
|
- -c
|
|
- |
|
|
echo "Waiting for [{{ $ncUrl }}]";
|
|
until wget --spider --quiet --timeout=3 --tries=1 {{ $ncUrl }}/status.php;
|
|
do
|
|
echo "Waiting for [{{ $ncUrl }}]";
|
|
sleep 2;
|
|
done
|
|
echo "Nextcloud is up: {{ $ncUrl }}";
|
|
{{- end -}}
|