29 lines
1.3 KiB
YAML
29 lines
1.3 KiB
YAML
# Headless service for Vault server DNS entries. This service should only
|
|
# point to Vault servers. For access to an agent, one should assume that
|
|
# 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
|
|
# communicate directly to a server agent.
|
|
{{- 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))) }}
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ template "vault.fullname" . }}-ui
|
|
labels:
|
|
app: {{ template "vault.name" . }}
|
|
chart: {{ template "vault.chart" . }}
|
|
heritage: {{ .Release.Service }}
|
|
release: {{ .Release.Name }}
|
|
spec:
|
|
selector:
|
|
app: {{ template "vault.name" . }}
|
|
release: "{{ .Release.Name }}"
|
|
component: server
|
|
type: LoadBalancer
|
|
ports:
|
|
- name: http
|
|
port: 80
|
|
targetPort: 8200
|
|
{{- if .Values.ui.service.type }}
|
|
type: {{ .Values.ui.service.type }}
|
|
{{- end }}
|
|
{{- end }}
|