Improve notes to access deployed services

This commit is contained in:
Juan Ariza
2018-08-06 13:59:52 +02:00
parent 96c264786c
commit 0071eb5545
22 changed files with 48 additions and 53 deletions

View File

@@ -2,7 +2,7 @@ name: consul
home: https://www.consul.io/
sources:
- https://github.com/bitnami/consul
version: 1.0.0
version: 1.0.1
appVersion: 1.0.6
description: Highly available and distributed service discovery and key-value store
designed with support for the modern data center to make distributed systems and

View File

@@ -16,8 +16,7 @@ In order to access to the Consul Web UI:
export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ template "consul.fullname" . }}-ui)
echo http://$NODE_IP:$NODE_PORT/
echo "Consul URL: http://$NODE_IP:$NODE_PORT/"
{{- else if contains "LoadBalancer" .Values.ui.service.type }}
@@ -25,15 +24,12 @@ In order to access to the Consul Web UI:
Watch the status with: 'kubectl get svc --namespace {{ .Release.Namespace }} -w {{ template "consul.fullname" . }}-ui'
export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "consul.fullname" . }}-ui -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
echo http://$SERVICE_IP:{{ .Values.httpPort }}/
echo "Consul URL: http://$SERVICE_IP:{{ .Values.httpPort }}/"
{{- else if contains "ClusterIP" .Values.ui.service.type }}
kubectl port-forward {{ template "consul.fullname" . }}-0 --namespace {{ .Release.Namespace }} {{ .Values.httpPort }}:{{ .Values.httpPort }}
URL : http://127.0.0.1:{{ .Values.httpPort }}
kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "consul.fullname" . }}-ui {{ .Values.httpPort }}:{{ .Values.httpPort }}
echo "Consul URL: http://127.0.0.1:{{ .Values.httpPort }}"
{{- end }}
@@ -47,4 +43,4 @@ Furthermore, to know which Consul node is the cluster leader run this other comm
kubectl exec -it {{ template "consul.fullname" . }}-0 -- consul operator raft list-peers
{{- end }}
{{- end }}