Add spire-k8s-registrar service

Signed-off-by: Marco Franssen <[email protected]>
Signed-off-by: Marco Franssen <[email protected]>
This commit is contained in:
Marco Franssen
2023-02-18 13:04:12 +01:00
committed by Marco Franssen
parent 175d448341
commit 4a2b0ac69a
2 changed files with 26 additions and 0 deletions
@@ -0,0 +1,22 @@
{{- if eq (.Values.k8sWorkloadRegistrar.enabled | toString) "true" }}
apiVersion: v1
kind: Service
metadata:
name: {{ include "spire-k8s-workload-registrar.fullname" . }}
namespace: {{ .Release.Namespace }}
{{- with .Values.service.annotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{- include "spire-server.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.type }}
ports:
- name: https
port: 443
targetPort: k8s-registrar
protocol: TCP
selector:
{{- include "spire-server.selectorLabels" . | nindent 4 }}
{{- end }}
@@ -85,6 +85,10 @@ spec:
args: args:
- -config - -config
- /run/spire/k8s-workload-registrar/config/workload-registrar.conf - /run/spire/k8s-workload-registrar/config/workload-registrar.conf
ports:
- name: k8s-registrar
containerPort: 9443
protocol: TCP
resources: resources:
{{- toYaml .Values.k8sWorkloadRegistrar.resources | nindent 12 }} {{- toYaml .Values.k8sWorkloadRegistrar.resources | nindent 12 }}
volumeMounts: volumeMounts: