Add spire-k8s-registrar service
Signed-off-by: Marco Franssen <[email protected]> Signed-off-by: Marco Franssen <[email protected]>
This commit is contained in:
@@ -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:
|
||||
- -config
|
||||
- /run/spire/k8s-workload-registrar/config/workload-registrar.conf
|
||||
ports:
|
||||
- name: k8s-registrar
|
||||
containerPort: 9443
|
||||
protocol: TCP
|
||||
resources:
|
||||
{{- toYaml .Values.k8sWorkloadRegistrar.resources | nindent 12 }}
|
||||
volumeMounts:
|
||||
|
||||
Reference in New Issue
Block a user