@@ -5,6 +5,12 @@ metadata:
55 name : {{ .Release.Name }}-st2auth
66 annotations :
77 description : StackStorm st2auth - all authentication is managed by this service.
8+ {{- if .Values.st2auth.service.hostname }}
9+ external-dns.alpha.kubernetes.io/hostname : {{ .Values.st2auth.service.hostname | quote }}
10+ {{- end }}
11+ {{- if .Values.st2auth.service.annotations }}
12+ {{- toYaml .Values.st2auth.service.annotations | nindent 4 }}
13+ {{- end }}
814 labels :
915 app : st2auth
1016 tier : backend
1622 selector :
1723 app : st2auth
1824 release : {{ .Release.Name }}
19- type : ClusterIP
25+ type : {{ .Values.st2auth.service.type }}
26+ {{- if contains "ExternalName" .Values.st2auth.service.type }}
27+ {{- if .Values.st2auth.service.hostname }}
28+ externalName : {{ .Values.st2auth.service.hostname }}
29+ {{- end }}
30+ {{- end }}
2031 ports :
2132 - protocol : TCP
2233 port : 9100
@@ -136,34 +147,3 @@ spec:
136147 - protocol : TCP
137148 port : 8081
138149{{- end }}
139-
140- ---
141- kind : Service
142- apiVersion : v1
143- metadata :
144- name : {{ .Release.Name }}-st2client
145- annotations :
146- description : StackStorm st2client
147- {{- if .Values.st2client.service.hostname }}
148- external-dns.alpha.kubernetes.io/hostname : {{ .Values.st2client.service.hostname | quote }}
149- {{- end }}
150- {{- if .Values.st2client.service.annotations }}
151- {{- toYaml .Values.st2client.service.annotations | nindent 4 }}
152- {{- end }}
153- labels :
154- app : st2client
155- tier : frontend
156- vendor : stackstorm
157- chart : {{ .Chart.Name }}-{{ .Chart.Version }}
158- release : {{ .Release.Name }}
159- heritage : {{ .Release.Service }}
160- spec :
161- selector :
162- app : st2client
163- release : {{ .Release.Name }}
164- type : {{ .Values.st2client.service.type }}
165- {{- if contains "ExternalName" .Values.st2client.service.type }}
166- {{- if .Values.st2client.service.hostname }}
167- externalName : {{ .Values.st2client.service.hostname }}
168- {{- end }}
169- {{- end }}
0 commit comments