Skip to content

Commit 8da8c41

Browse files
committed
Removed client service for auth service
1 parent 48496e3 commit 8da8c41

File tree

2 files changed

+20
-40
lines changed

2 files changed

+20
-40
lines changed

templates/services.yaml

Lines changed: 12 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -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
@@ -16,7 +22,12 @@ spec:
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 }}

values.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,14 @@ st2auth:
347347
affinity: {}
348348
env: {}
349349
# HTTP_PROXY: http://proxy:1234
350+
service:
351+
# type can be one of "ClusterIP", "NodePort", "LoadBalancer" or "ExternalName"
352+
type: "ClusterIP"
353+
# The hostname associated with st2auth service (externalName, added to external DNS, etc.)
354+
hostname: ""
355+
# For more information regarding annotations, see
356+
# https://kubernetes.io/docs/concepts/services-networking/service/#ssl-support-on-aws
357+
annotations: {}
350358
serviceAccount:
351359
attach: false
352360
# postStartScript is optional. It has the contents of a bash script.
@@ -714,14 +722,6 @@ st2client:
714722
username = ${ST2_AUTH_USERNAME}
715723
password = ${ST2_AUTH_PASSWORD}
716724
env: {}
717-
service:
718-
# type can be one of "ClusterIP", "NodePort", "LoadBalancer" or "ExternalName"
719-
type: "ClusterIP"
720-
# The hostname associated with st2client service (externalName, added to external DNS, etc.)
721-
hostname: ""
722-
# For more information regarding annotations, see
723-
# https://kubernetes.io/docs/concepts/services-networking/service/#ssl-support-on-aws
724-
annotations: {}
725725
# HTTP_PROXY: http://proxy:1234
726726
## These named secrets (managed outside this chart) will be added to envFrom.
727727
envFromSecrets: []

0 commit comments

Comments
 (0)