2023-04-10 13:14:24 +00:00
|
|
|
{{/*
|
|
|
|
Copyright (c) HashiCorp, Inc.
|
|
|
|
SPDX-License-Identifier: MPL-2.0
|
|
|
|
*/}}
|
|
|
|
|
2022-10-18 08:13:05 +00:00
|
|
|
{{ template "vault.mode" . }}
|
|
|
|
{{- if ne .mode "external" }}
|
|
|
|
{{- template "vault.serverServiceEnabled" . -}}
|
|
|
|
{{- if .serverServiceEnabled -}}
|
|
|
|
# Service for Vault cluster
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: {{ template "vault.fullname" . }}-internal
|
|
|
|
namespace: {{ .Release.Namespace }}
|
|
|
|
labels:
|
|
|
|
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 }}
|
|
|
|
vault-internal: "true"
|
|
|
|
annotations:
|
|
|
|
{{ template "vault.service.annotations" .}}
|
|
|
|
spec:
|
|
|
|
clusterIP: None
|
2023-06-26 15:58:13 +00:00
|
|
|
publishNotReadyAddresses: true
|
2022-10-18 08:13:05 +00:00
|
|
|
ports:
|
|
|
|
- name: "{{ include "vault.scheme" . }}"
|
|
|
|
port: {{ .Values.server.service.port }}
|
|
|
|
targetPort: {{ .Values.server.service.targetPort }}
|
|
|
|
- name: https-internal
|
|
|
|
port: 8201
|
|
|
|
targetPort: 8201
|
|
|
|
selector:
|
|
|
|
app.kubernetes.io/name: {{ include "vault.name" . }}
|
|
|
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
|
|
component: server
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|