We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
kubectl rabbitmq manage
1 parent e4d57d5 commit 1920330Copy full SHA for 1920330
bin/kubectl-rabbitmq
@@ -138,11 +138,20 @@ perf_test() {
138
manage() {
139
get_instance_details "$@"
140
141
+ TLS="$(kubectl $NAMESPACE get service ${service} -o jsonpath='{.spec.ports[?(@.name=="management-tls")]}')"
142
+ if [[ -n "$TLS" ]]; then
143
+ MGMT_PORT=15671
144
+ MGMT_URL="https://localhost:$MGMT_PORT/"
145
+
146
+ else
147
+ MGMT_PORT=15672
148
+ MGMT_URL="http://localhost:$MGMT_PORT/"
149
+ fi
150
(
151
sleep 2
- open "http://localhost:15672/"
152
+ open "$MGMT_URL"
153
) &
- kubectl ${NAMESPACE} port-forward "service/${service}" 15672
154
+ kubectl ${NAMESPACE} port-forward "service/${service}" $MGMT_PORT
155
}
156
157
list_rabbitmq_clusters() {
0 commit comments