- Added `apiServerService` configuration to `values.prod.yaml` and `values.yaml`, enabling the service. - Updated the service template to use the new `apiServerService` configuration instead of the deprecated `metrics` configuration. Signed-off-by: zhenyus <zhenyus@mathmast.com>
18 lines
548 B
YAML
18 lines
548 B
YAML
{{- if .Values.apiServerService.enabled }}
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ include "freeleaps-secret-operator.fullname" . }}-vault-service
|
|
labels:
|
|
{{- include "freeleaps-secret-operator.labels" . | nindent 4 }}
|
|
spec:
|
|
type: {{ .Values.apiServerService.service.type }}
|
|
ports:
|
|
- port: {{ .Values.apiServerService.service.port }}
|
|
targetPort: {{ .Values.operator.apiServerPort }}
|
|
protocol: TCP
|
|
name: api
|
|
selector:
|
|
{{- include "freeleaps-secret-operator.selectorLabels" . | nindent 4 }}
|
|
{{- end }}
|