openbao-helm/templates/ui-service.yaml

30 lines
1.3 KiB
YAML
Raw Permalink Normal View History

# Headless service for Vault server DNS entries. This service should only
# point to Vault servers. For access to an agent, one should assume that
2018-08-18 05:08:03 +00:00
# the agent is installed locally on the node and the NODE_IP should be used.
# If the node can't run a Vault agent, then this service can be used to
2018-08-18 05:08:03 +00:00
# communicate directly to a server agent.
2018-09-03 16:15:28 +00:00
{{- if (and (or (and (ne (.Values.server.enabled | toString) "-") .Values.server.enabled) (and (eq (.Values.server.enabled | toString) "-") .Values.global.enabled)) (or (and (ne (.Values.ui.enabled | toString) "-") .Values.ui.enabled) (and (eq (.Values.ui.enabled | toString) "-") .Values.global.enabled)) (or (and (ne (.Values.ui.service.enabled | toString) "-") .Values.ui.service.enabled) (and (eq (.Values.ui.service.enabled | toString) "-") .Values.global.enabled))) }}
2018-08-18 05:08:03 +00:00
apiVersion: v1
kind: Service
metadata:
name: {{ template "vault.fullname" . }}-ui
2018-08-18 05:08:03 +00:00
labels:
app: {{ template "vault.name" . }}
chart: {{ template "vault.chart" . }}
heritage: {{ .Release.Service }}
release: {{ .Release.Name }}
2018-08-18 05:08:03 +00:00
spec:
selector:
app: {{ template "vault.name" . }}
release: "{{ .Release.Name }}"
component: server
2018-10-05 21:12:32 +00:00
type: LoadBalancer
2018-08-18 05:08:03 +00:00
ports:
- name: http
port: 80
targetPort: 8200
2018-09-03 16:15:28 +00:00
{{- if .Values.ui.service.type }}
type: {{ .Values.ui.service.type }}
2018-08-18 05:08:03 +00:00
{{- end }}
{{- end }}