Skip to content

OSSM-9369: add instructions to Create Istio reader ServiceAccount #93475

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: service-mesh-docs-main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 34 additions & 4 deletions modules/ossm-installing-multi-primary-multi-network-mesh.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -123,14 +123,43 @@ $ oc --context "${CTX_CLUSTER2}" apply -f https://raw.githubusercontent.com/isti
$ oc --context "${CTX_CLUSTER2}" apply -n istio-system -f https://raw.githubusercontent.com/istio-ecosystem/sail-operator/main/docs/multicluster/expose-services.yaml
----

. Create the `istio-reader-service-account` for the East cluster by running the following command:
+
[source,terminal]
----
$ oc --context="${CTX_CLUSTER1}" create serviceaccount istio-reader-service-account -n istio-system
----

. Create the `istio-reader-service-account` for the West cluster by running the following command:
+
[source,terminal]
----
$ oc --context="${CTX_CLUSTER2}" create serviceaccount istio-reader-service-account -n istio-system
----

. Add the `cluster-reader` role to the East cluster by running the following command:
+
[source,terminal]
----
$ oc --context="${CTX_CLUSTER1}" adm policy add-cluster-role-to-user cluster-reader -z istio-reader-service-account -n istio-system
----

. Add the `cluster-reader` role to the West cluster by running the following command:
+
[source,terminal]
----
$ oc --context="${CTX_CLUSTER2}" adm policy add-cluster-role-to-user cluster-reader -z istio-reader-service-account -n istio-system
----

. Install a remote secret on the East cluster that provides access to the API server on the West cluster by running the following command:
+
[source,terminal]
----
$ istioctl create-remote-secret \
--context="${CTX_CLUSTER2}" \
--name=cluster2 | \
oc --context="${CTX_CLUSTER1}" apply -f -
--name=cluster2 \
--create-service-account=false | \
oc --context="${CTX_CLUSTER1}" apply -f -
----

. Install a remote secret on the West cluster that provides access to the API server on the East cluster by running the following command:
Expand All @@ -139,6 +168,7 @@ $ istioctl create-remote-secret \
----
$ istioctl create-remote-secret \
--context="${CTX_CLUSTER1}" \
--name=cluster1 | \
oc --context="${CTX_CLUSTER2}" apply -f -
--name=cluster1 \
--create-service-account=false | \
oc --context="${CTX_CLUSTER2}" apply -f -
----