From e820307e8b1e0c6b1784f6ea6966f41790258fd5 Mon Sep 17 00:00:00 2001 From: Chris Kim Date: Mon, 11 Mar 2019 17:28:29 -0700 Subject: [PATCH] Updating NOTES.txt to provide ca retrieval command --- submariner-k8s-broker/templates/NOTES.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/submariner-k8s-broker/templates/NOTES.txt b/submariner-k8s-broker/templates/NOTES.txt index b227541..58f463e 100644 --- a/submariner-k8s-broker/templates/NOTES.txt +++ b/submariner-k8s-broker/templates/NOTES.txt @@ -4,6 +4,7 @@ You can retrieve the server URL by running $ SUBMARINER_BROKER_URL=$(kubectl -n default get endpoints kubernetes -o jsonpath="{.subsets[0].addresses[0].ip}:{.subsets[0].ports[0].port}") -The broker client token can be retrieved by running +The broker client token and CA can be retrieved by running - $ SUBMARINER_BROKER_TOKEN=$(kubectl -n {{ .Release.Namespace }} get secrets -o jsonpath="{.items[?(@.metadata.annotations['kubernetes\.io/service-account\.name']=='{{ template "submariner-k8s-broker.clientServiceAccountName" . }}')].data.token}"|base64 --decode) \ No newline at end of file + $ SUBMARINER_BROKER_CA=$(kubectl -n {{ .Release.Namespace }} get secrets -o jsonpath="{.items[?(@.metadata.annotations['kubernetes\.io/service-account\.name']=='{{ template "submariner-k8s-broker.clientServiceAccountName" . }}')].data['ca\.crt']}") + $ SUBMARINER_BROKER_TOKEN=$(kubectl -n {{ .Release.Namespace }} get secrets -o jsonpath="{.items[?(@.metadata.annotations['kubernetes\.io/service-account\.name']=='{{ template "submariner-k8s-broker.clientServiceAccountName" . }}')].data.token}"|base64 --decode)