mirror of
https://github.com/submariner-io/submariner-charts.git
synced 2026-09-20 19:10:34 +00:00
Starting with Kubernetes 1.24, secrets are no longer automatically created for SAs. This adds secrets to the relevant templates; creating secrets in this way is supported in all Kubernetes versions. This also enables testing with 1.24 in CI, to make sure that the fix actually works. Signed-off-by: Stephen Kitt <skitt@redhat.com>
11 lines
627 B
Plaintext
11 lines
627 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 "${SUBMARINER_BROKER_NS}" get secrets "${SUBMARINER_BROKER_NS}-client-token" -o jsonpath="{.data['ca\.crt']}")
|
|
$ SUBMARINER_BROKER_TOKEN=$(kubectl -n "${SUBMARINER_BROKER_NS}" get secrets "${SUBMARINER_BROKER_NS}-client-token" -o jsonpath="{.data.token}"|base64 --decode)
|