File tree Expand file tree Collapse file tree 1 file changed +18
-8
lines changed Expand file tree Collapse file tree 1 file changed +18
-8
lines changed Original file line number Diff line number Diff line change @@ -68,19 +68,20 @@ content: |
68
68
token: <token>
69
69
70
70
#. Copy the following ``kubeconfig`` example for the central cluster and replace
71
- the placeholders with the ``<ca_certificate>`` and ``<token>`` you copied from the service account secrets.
71
+ the placeholders with the ``<ca_certificate>`` and ``<token>`` you copied from
72
+ the service account secrets by running the commands listed below.
72
73
73
74
.. code-block:: yaml
74
75
75
76
apiVersion: v1
76
77
clusters:
77
78
- cluster:
78
- certificate-authority-data: <cluster-1-ca.crt>
79
- server: https://:
79
+ certificate-authority:
80
+ server: https://
80
81
name: kind-e2e-cluster-1
81
82
- cluster:
82
- certificate-authority-data: <cluster-2-ca.crt>
83
- server: https://:
83
+ certificate-authority:
84
+ server: https://
84
85
name: kind-e2e-cluster-2
85
86
contexts:
86
87
- context:
@@ -97,12 +98,21 @@ content: |
97
98
users:
98
99
- name: kind-e2e-cluster-1
99
100
user:
100
- token: <cluster-1-token>
101
+ token:
101
102
- name: kind-e2e-cluster-2
102
103
user:
103
- token: <cluster-2-token>
104
+ token:
104
105
105
- #. Save the ``kubeconfig`` file.
106
+ Populate the following ``kubectl`` commands with the correct values and run
107
+ them to update your example ``kubeconfig`` file.
108
+
109
+ .. code-block:: sh
110
+
111
+ kubectl config --kubeconfig=kubeconfig set-cluster kind-e2e-cluster-1 --certificate-authority=<cluster-1-ca.crt>
112
+ kubectl config --kubeconfig=kubeconfig set-cluster kind-e2e-cluster-2 --certificate-authority=<cluster-2-ca.crt>
113
+
114
+ kubectl config --kubeconfig=kubeconfig set-credentials kind-e2e-cluster-1 --token=<cluster-1-token>
115
+ kubectl config --kubeconfig=kubeconfig set-credentials kind-e2e-cluster-2 --token=<cluster-2-token>
106
116
107
117
#. Create a secret in the central cluster that you mount in the |k8s-op-short| as illustrated in :github:`the reference Helm chart </mongodb/helm-charts/blob/enterprise-operator-1.20.1/charts/enterprise-operator/templates/operator.yaml#L191-L197/>`. For example:
108
118
You can’t perform that action at this time.
0 commit comments