openbao-helm/templates/server-service.yaml

35 lines
1.2 KiB
YAML
Raw Permalink Normal View History

# Service for Vault cluster
{{- if and (eq (.Values.server.service.enabled | toString) "true" ) (eq (.Values.global.enabled | toString) "true") }}
2018-08-18 05:08:03 +00:00
apiVersion: v1
kind: Service
metadata:
name: {{ template "vault.fullname" . }}
2018-08-18 05:08:03 +00:00
labels:
2019-08-07 18:55:32 +00:00
helm.sh/chart: {{ include "vault.chart" . }}
app.kubernetes.io/name: {{ include "vault.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/version: {{ .Chart.Version | quote }}
2018-08-18 05:08:03 +00:00
annotations:
# This must be set in addition to publishNotReadyAddresses due
# to an open issue where it may not work:
# https://github.com/kubernetes/kubernetes/issues/58662
service.alpha.kubernetes.io/tolerate-unready-endpoints: "true"
spec:
clusterIP: {{ .Values.server.service.clusterIP }}
2018-08-18 05:08:03 +00:00
# We want the servers to become available even if they're not ready
# since this DNS is also used for join operations.
publishNotReadyAddresses: true
ports:
- name: http
port: 8200
targetPort: 8200
- name: internal
port: 8201
targetPort: 8201
2018-08-18 05:08:03 +00:00
selector:
app.kubernetes.io/name: {{ include "vault.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
component: server
2018-08-18 05:08:03 +00:00
{{- end }}