Improve notes to access deployed services (#7030)

This commit is contained in:
Juan Ariza Toledano
2018-08-07 04:08:41 -07:00
committed by k8s-ci-robot
parent 75836b5c88
commit 090ca7e55a
2 changed files with 11 additions and 13 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: rabbitmq
version: 2.1.1
version: 2.1.2
appVersion: 3.7.7
description: Open source message broker software that implements the Advanced Message Queuing Protocol (AMQP)
keywords:
+10 -12
View File
@@ -4,8 +4,8 @@
Credentials:
Username : {{ .Values.rabbitmq.username }}
echo Password : $(kubectl get secret --namespace {{ .Release.Namespace }} {{ template "rabbitmq.fullname" . }} -o jsonpath="{.data.rabbitmq-password}" | base64 --decode)
echo ErLang Cookie : $(kubectl get secret --namespace {{ .Release.Namespace }} {{ template "rabbitmq.fullname" . }} -o jsonpath="{.data.rabbitmq-erlang-cookie}" | base64 --decode)
echo "Password : $(kubectl get secret --namespace {{ .Release.Namespace }} {{ template "rabbitmq.fullname" . }} -o jsonpath="{.data.rabbitmq-password}" | base64 --decode)"
echo "ErLang Cookie : $(kubectl get secret --namespace {{ .Release.Namespace }} {{ template "rabbitmq.fullname" . }} -o jsonpath="{.data.rabbitmq-erlang-cookie}" | base64 --decode)"
RabbitMQ can be accessed within the cluster on port {{ .Values.rabbitmq.nodePort }} at {{ template "rabbitmq.fullname" . }}.{{ .Release.Namespace }}.svc.cluster.local
@@ -21,11 +21,11 @@ Obtain the NodePort IP and ports:
To Access the RabbitMQ AMQP port:
echo URL : amqp://$NODE_IP:$NODE_PORT_AMQP/
echo "URL : amqp://$NODE_IP:$NODE_PORT_AMQP/"
To Access the RabbitMQ Management interface:
echo URL : http://$NODE_IP:$NODE_PORT_STATS/
echo "URL : http://$NODE_IP:$NODE_PORT_STATS/"
{{- else if contains "LoadBalancer" .Values.serviceType }}
@@ -38,24 +38,22 @@ NOTE: It may take a few minutes for the LoadBalancer IP to be available.
To Access the RabbitMQ AMQP port:
echo URL : amqp://$SERVICE_IP:{{ .Values.rabbitmq.nodePort }}/
echo "URL : amqp://$SERVICE_IP:{{ .Values.rabbitmq.nodePort }}/"
To Access the RabbitMQ Management interface:
echo URL : http://$SERVICE_IP:{{ .Values.rabbitmq.managerPort }}/
echo "URL : http://$SERVICE_IP:{{ .Values.rabbitmq.managerPort }}/"
{{- else if contains "ClusterIP" .Values.serviceType }}
Create a proxy server between localhost and the Kubernetes API Server:
kubectl proxy --port 8002
To Access the RabbitMQ AMQP port:
URL : amqp://127.0.0.1:8002/api/v1/proxy/namespaces/{{ .Release.Namespace }}/services/{{ template "rabbitmq.fullname" . }}:{{ .Values.rabbitmq.nodePort }}/
kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "rabbitmq.fullname" . }} {{ .Values.rabbitmq.nodePort }}:{{ .Values.rabbitmq.nodePort }}
echo "URL : amqp://127.0.0.1:{{ .Values.rabbitmq.nodePort }}/"
To Access the RabbitMQ Management interface:
URL : http://127.0.0.1:8002/api/v1/proxy/namespaces/{{ .Release.Namespace }}/services/{{ template "rabbitmq.fullname" . }}:{{ .Values.rabbitmq.managerPort }}/
kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "rabbitmq.fullname" . }} {{ .Values.rabbitmq.managerPort }}:{{ .Values.rabbitmq.managerPort }}
echo "URL : http://127.0.0.1:{{ .Values.rabbitmq.managerPort }}/"
{{- end }}