Skip to content

Commit

Permalink
Merge pull request #28 from replicatedhq/laverya/use-static-service-n…
Browse files Browse the repository at this point in the history
…ames

always include an internal 'kotsadm' service, and use a static name for the nodeport service
  • Loading branch information
laverya authored Dec 13, 2023
2 parents 8cb6aaa + a6f704a commit 107f056
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 107f056

Please sign in to comment.