Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: modify helm chart for extended service features #2192

Merged
merged 2 commits into from
Jul 29, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 15 additions & 7 deletions dev/helm/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
apiVersion: v1
kind: Service
metadata:
name: {{ include "wiki.fullname" . }}
labels:
{{- include "wiki.labels" . | nindent 4 }}
name: {{include "wiki.fullname" .}}
labels: {{- include "wiki.labels" . | nindent 4 }}
{{- with .Values.service.annotations }}
annotations:
{{- range $key, $value := . }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
spec:
type: {{ .Values.service.type }}
type: {{.Values.service.type}}
ports:
- port: {{ .Values.service.port }}
- port: {{.Values.service.port}}
targetPort: http
protocol: TCP
name: http
selector:
{{- include "wiki.selectorLabels" . | nindent 4 }}
- port: {{.Values.service.httpsPort}}
targetPort: http
protocol: TCP
name: https
selector: {{- include "wiki.selectorLabels" . | nindent 4}}
15 changes: 14 additions & 1 deletion dev/helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ securityContext: {}
service:
type: ClusterIP
port: 80
# Annotations applied for services such as externalDNS or
# service type LoadBalancer
# type: LoadBalancer
# httpsPort: 443
# annotations: {}

ingress:
enabled: false
Expand Down Expand Up @@ -75,7 +80,11 @@ postgresql:
## Set to false if bringing your own PostgreSQL, and set secret value postgresql-uri.
##
enabled: true
### PostgreSQL User to create.
## PostgreSQL fullname Override
## Default to wiki-postgresql unless fullname override is set for Chart
##
fullnameOverride: ""
## PostgreSQL User to create.
##
postgresqlUser: postgres
## PostgreSQL Database to create.
Expand All @@ -84,6 +93,10 @@ postgresql:
## Persistent Volume Storage configuration.
## ref: https://kubernetes.io/docs/user-guide/persistent-volumes
##
replication:
## Enable PostgreSQL replication (primary/secondary)
##
enabled: false
persistence:
## Enable PostgreSQL persistence using Persistent Volume Claims.
##
Expand Down