File tree 1 file changed +1
-2
lines changed
1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change 15
15
export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "code-server.fullname" . }} -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
16
16
echo http://$SERVICE_IP:{{ .Values.service.port }}
17
17
{{- else if contains "ClusterIP" .Values.service.type }}
18
- export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "code-server.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
19
18
echo "Visit http://127.0.0.1:8080 to use your application"
20
- kubectl port-forward $POD_NAME 8080:80
19
+ kubectl port-forward --namespace {{ .Release.Namespace }} service/{{ include "code-server.fullname" . }} 8080:http
21
20
{{- end }}
22
21
23
22
Administrator credentials:
You can’t perform that action at this time.
0 commit comments