Skip to content

Commit fe0db78

Browse files
committed
fix notes
1 parent 62dfd0a commit fe0db78

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed
Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1 @@
1-
Verify the application is working by running these commands:
2-
{{if contains "NodePort" .Values.service.type }}
3-
NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
4-
NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "k8sdb-controller.fullname" . }})
5-
curl http://$NODE_IP:$NODE_PORT{{ .Values.metricsPath }}
6-
{{- else if contains "LoadBalancer" .Values.service.type }}
7-
# NOTE: It may take a few minutes for the LoadBalancer IP to be available.
8-
SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "k8sdb-controller.fullname" . }} -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
9-
curl http://$SERVICE_IP:{{ .Values.service.port }}{{ .Values.metricsPath }}
10-
{{- else if contains "ClusterIP" .Values.service.type }}
11-
kubectl port-forward service/{{ include "k8sdb-controller.fullname" . }} {{ .Values.service.port }}
12-
curl http://127.0.0.1:{{ .Values.service.port }}{{ .Values.metricsPath }}
13-
{{- end }}
1+
Controller installed successfully.

0 commit comments

Comments
 (0)