forked from kubernetes-retired/service-catalog
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add service resource for the controller manager (kubernetes-retired#2431
) * Add service resource for the controller manager Signed-off-by: Sébastien Prud'homme <[email protected]> * Use ClusterIP for controller manager Service type Signed-off-by: Sébastien Prud'homme <[email protected]>
- Loading branch information
1 parent
6de9ba7
commit e7e70a1
Showing
3 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
kind: Service | ||
apiVersion: v1 | ||
metadata: | ||
name: {{ template "fullname" . }}-controller-manager | ||
labels: | ||
app: {{ template "fullname" . }}-controller-manager | ||
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" | ||
release: "{{ .Release.Name }}" | ||
heritage: "{{ .Release.Service }}" | ||
spec: | ||
type: {{ .Values.controllerManager.service.type }} | ||
{{- if eq .Values.controllerManager.service.type "ClusterIP" }} | ||
{{- if .Values.controllerManager.service.clusterIP }} | ||
clusterIP: {{ .Values.controllerManager.service.clusterIP }} | ||
{{- end }} | ||
{{- end }} | ||
selector: | ||
app: {{ template "fullname" . }}-controller-manager | ||
ports: | ||
- name: secure | ||
protocol: TCP | ||
port: 443 | ||
targetPort: 8444 | ||
{{- if eq .Values.controllerManager.service.type "NodePort" }} | ||
nodePort: {{ .Values.controllerManager.service.nodePort.securePort }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters