diff options
| author | Max Resnick <max@ofmax.li> | 2019-09-22 09:23:20 -0700 |
|---|---|---|
| committer | Max Resnick <max@ofmax.li> | 2019-09-22 09:23:20 -0700 |
| commit | 479a617193774e2fe88279caa34ae3ff56a35fba (patch) | |
| tree | 6e42c80583e877bb58fda360bc1e17d626c1ba82 /grumpy/static-files/templates/ingress.yaml | |
| parent | 11d2384be92b00b830f4a0e4fdc9a8bf86b76d31 (diff) | |
| download | grumpy-charts-479a617193774e2fe88279caa34ae3ff56a35fba.tar.gz | |
add static files
Diffstat (limited to '')
| -rw-r--r-- | grumpy/static-files/templates/ingress.yaml | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/grumpy/static-files/templates/ingress.yaml b/grumpy/static-files/templates/ingress.yaml new file mode 100644 index 0000000..cd442fa --- /dev/null +++ b/grumpy/static-files/templates/ingress.yaml @@ -0,0 +1,37 @@ +{{- if .Values.ingress.enabled -}} +{{- $fullName := include "static-files.fullname" . -}} +{{- $svcPort := .Values.service.port -}} +apiVersion: extensions/v1beta1 +kind: Ingress +metadata: + name: {{ $fullName }} + labels: +{{ include "static-files.labels" . | indent 4 }} + {{- with .Values.ingress.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} +spec: +{{- if .Values.ingress.tls }} + tls: + {{- range .Values.ingress.tls }} + - hosts: + {{- range .hosts }} + - {{ . | quote }} + {{- end }} + secretName: {{ .secretName }} + {{- end }} +{{- end }} + rules: + {{- range .Values.ingress.hosts }} + - host: {{ .host | quote }} + http: + paths: + {{- range .paths }} + - path: {{ . }} + backend: + serviceName: {{ $fullName }} + servicePort: {{ $svcPort }} + {{- end }} + {{- end }} +{{- end }} |