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,32 +1,15 @@
apiVersion: v1
kind: Service
metadata:
name: {{ template "wiki.fullname" . }}
name: {{ include "wiki.fullname" . }}
labels:
app: {{ template "wiki.name" . }}
chart: {{ template "wiki.chart" . }}
release: {{ .Release.Name | quote }}
heritage: {{ .Release.Service | quote }}
{{- include "wiki.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.type }}
{{- if .Values.service.loadBalancerIP }}
loadBalancerIP: {{ .Values.service.loadBalancerIP }}
{{- end }}
{{- if (or (eq .Values.service.type "LoadBalancer") (eq .Values.service.type "NodePort")) }}
externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy | quote }}
{{- end }}
ports:
- name: http
port: {{ .Values.service.port }}
targetPort: http
{{- if (and (eq .Values.service.type "NodePort") (not (empty .Values.service.nodePorts.http)))}}
nodePort: {{ .Values.service.nodePorts.http }}
{{- end }}
- name: https
port: {{ .Values.service.httpsPort }}
targetPort: https
{{- if (and (eq .Values.service.type "NodePort") (not (empty .Values.service.nodePorts.https)))}}
nodePort: {{ .Values.service.nodePorts.https }}
{{- end }}
- port: {{ .Values.service.port }}
targetPort: http
protocol: TCP
name: http
selector:
app: {{ template "wiki.name" . }}
{{- include "wiki.selectorLabels" . | nindent 4 }}