Skip to content

Commit

Permalink
always include an internal 'kotsadm' service, and use a static name f…
Browse files Browse the repository at this point in the history
…or the nodeport service
  • Loading branch information
laverya committed Dec 13, 2023
1 parent 25db7bf commit a6f704a
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
15 changes: 15 additions & 0 deletions templates/kotsadm-internal-service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: v1
kind: Service
metadata:
labels:
{{- include "admin-console.labels" . | nindent 4 }}
name: kotsadm
spec:
ports:
- name: http
port: 3000
protocol: TCP
targetPort: http
selector:
{{- include "admin-console.labels" . | nindent 4 }}
type: ClusterIP
2 changes: 1 addition & 1 deletion templates/kotsadm-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Service
metadata:
labels:
{{- include "admin-console.labels" . | nindent 4 }}
name: {{ include "admin-console.fullname" . }}
name: kotsadm-nodeport
spec:
ports:
- name: http
Expand Down
2 changes: 1 addition & 1 deletion templates/tests/test-connection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ spec:
- name: wget
image: busybox
command: ['wget']
args: ['{{ include "admin-console.fullname" . }}:{{ .Values.service.port }}']
args: ['kotsadm-nodeport:{{ .Values.service.port }}']
restartPolicy: Never

0 comments on commit a6f704a

Please sign in to comment.