blob: d71d1555f79fe006a6bbd2146677846d24e4027d [file] [log] [blame]
Mohammed Naser65cda132024-05-02 14:34:08 -04001{{- if and (not .Values.enableNodeFeatureApi) .Values.master.enable }}
Mohammed Naser9ad0d462023-01-15 20:36:37 -05002apiVersion: v1
3kind: Service
4metadata:
5 name: {{ include "node-feature-discovery.fullname" . }}-master
Mohammed Naser65cda132024-05-02 14:34:08 -04006 namespace: {{ include "node-feature-discovery.namespace" . }}
Mohammed Naser9ad0d462023-01-15 20:36:37 -05007 labels:
8 {{- include "node-feature-discovery.labels" . | nindent 4 }}
9 role: master
10spec:
11 type: {{ .Values.master.service.type }}
12 ports:
Mohammed Naser65cda132024-05-02 14:34:08 -040013 - port: {{ .Values.master.service.port | default "8080" }}
Mohammed Naser9ad0d462023-01-15 20:36:37 -050014 targetPort: grpc
15 protocol: TCP
16 name: grpc
17 selector:
18 {{- include "node-feature-discovery.selectorLabels" . | nindent 4 }}
Mohammed Naser65cda132024-05-02 14:34:08 -040019 role: master
20{{- end}}