diff --git a/templates/kotsadm-internal-service.yaml b/templates/kotsadm-internal-service.yaml new file mode 100644 index 0000000..422619f --- /dev/null +++ b/templates/kotsadm-internal-service.yaml @@ -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 diff --git a/templates/kotsadm-service.yaml b/templates/kotsadm-service.yaml index 5410da9..7ee4910 100644 --- a/templates/kotsadm-service.yaml +++ b/templates/kotsadm-service.yaml @@ -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 diff --git a/templates/tests/test-connection.yaml b/templates/tests/test-connection.yaml index f4c6d81..5f5206f 100644 --- a/templates/tests/test-connection.yaml +++ b/templates/tests/test-connection.yaml @@ -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