Improve NOTES.txt

This commit is contained in:
Juan Ariza
2018-05-03 11:30:55 +02:00
committed by Juan Ariza Toledano
parent 2747c3096b
commit 7a8187de64
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -22,17 +22,17 @@
export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ template "coordinating.fullname" . }})
export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
echo http://$NODE_IP:$NODE_PORT/
curl http://$NODE_IP:$NODE_PORT/
{{- else if contains "LoadBalancer" .Values.coordinating.service.type }}
NOTE: It may take a few minutes for the LoadBalancer IP to be available.
Watch the status with: 'kubectl get svc --namespace {{ .Release.Namespace }} -w {{ template "coordinating.fullname" . }}'
export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "coordinating.fullname" . }} -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
echo http://$SERVICE_IP:{{ .Values.coordinating.service.port }}/
curl http://$SERVICE_IP:{{ .Values.coordinating.service.port }}/
{{- else if contains "ClusterIP" .Values.coordinating.service.type }}
export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app={{ template "elasticsearch.name" . }},release={{ .Release.Name }},role=coordinating-only" -o jsonpath="{.items[0].metadata.name}")
echo http://127.0.0.1:{{ .Values.coordinating.service.port }}/
kubectl port-forward $POD_NAME {{ .Values.coordinating.service.port }}:9200
kubectl port-forward $POD_NAME {{ .Values.coordinating.service.port }}:9200 &
curl http://127.0.0.1:{{ .Values.coordinating.service.port }}/
{{- end }}
+1 -1
View File
@@ -1,7 +1,7 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: {{ .Values.serviceAccountName }}
name: {{ .Values.serviceAccountName | quote }}
labels:
app: {{ template "elasticsearch.name" . }}
chart: {{ template "elasticsearch.chart" . }}