misc: update helm chart configs and readme (#1751)

* fix wiki helm

* update readme

* include service account as a stub

* use lightweight healthz for readiness and health endpoint

* remove if block for setting DB_TYPE, only postgres is supported in this chart for now
This commit is contained in:
James Greenhill
2020-06-28 16:55:16 -07:00
committed by GitHub
parent ea3962d143
commit 370cd10096
15 changed files with 543 additions and 102 deletions

View File

@@ -1,39 +1,41 @@
{{- if .Values.ingress.enabled }}
{{- range .Values.ingress.hosts }}
{{- if .Values.ingress.enabled -}}
{{- $fullName := include "wiki.fullname" . -}}
{{- $svcPort := .Values.service.port -}}
{{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
apiVersion: networking.k8s.io/v1beta1
{{- else -}}
apiVersion: extensions/v1beta1
{{- end }}
kind: Ingress
metadata:
name: {{ template "wiki.fullname" $ }}
name: {{ $fullName }}
labels:
app: {{ template "wiki.name" $ }}
chart: {{ template "wiki.chart" $ }}
release: {{ $.Release.Name | quote }}
heritage: {{ $.Release.Service | quote }}
{{- include "wiki.labels" . | nindent 4 }}
{{- with .Values.ingress.annotations }}
annotations:
{{- if .tls }}
ingress.kubernetes.io/secure-backends: "true"
{{- end }}
{{- if .certManager }}
kubernetes.io/tls-acme: "true"
{{- end }}
{{- range $key, $value := .annotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
rules:
- host: {{ .name }}
http:
paths:
- path: {{ default "/" .path }}
backend:
serviceName: {{ template "wiki.fullname" $ }}
servicePort: 80
{{- if .tls }}
{{- if .Values.ingress.tls }}
tls:
- hosts:
- {{ .name }}
secretName: {{ .tlsSecret }}
{{- end }}
---
{{- 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 }}