mirror of
https://github.com/submariner-io/submariner-charts.git
synced 2026-09-22 21:20:35 +00:00
Normally in a vanilla kubernetes deployment, there is a single endpoint for kubernetes. However, in some deployments (like OpenShift), there could be multiple endpoints. This patch updates the SUBMARINER_BROKER_URL to use the appropriate "https" endpoint.
11 lines
831 B
Plaintext
11 lines
831 B
Plaintext
The Submariner Kubernetes Broker is now setup.
|
|
|
|
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[?(@.name=='https')].port}")
|
|
|
|
The broker client token and CA can be retrieved by running
|
|
|
|
$ 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)
|