You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. To connect to the cloud instance and OKE cluster we need the Oracle Cloud CLI client. Install Oracle Cloud CLI from https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/cliinstall.htm
143
137
144
-
After creating these service accounts in GCP, the kubernetes service account and
145
-
secret were created with:
138
+
1. The next step is to establish connection from the local client to the cloud instance. Login to the Oracle Cloud Console and create a new `API key` from the user profile.
139
+
Follow the steps here: https://docs.oracle.com/en-us/iaas/Content/API/Concepts/apisigningkey.htm#two
140
+
Download a Private Key and Add a new API key as mentioned in the doc. Copy the config file to `~/.oci/config` and update the path to the private key file in config.
141
+
With this the config is ready for usage by the CLI.
146
142
147
-
```bash
148
-
KEY_FILE=release.json
149
-
GENERIC_SECRET=release-secret
150
-
ACCOUNT=release-right-meow
151
-
152
-
# Connected to the `prow` in the `tekton-releases` GCP project
1. Test the connection by doing a get of the OKE cluster id.
144
+
Refer here https://docs.oracle.com/en-us/iaas/tools/oci-cli/3.70.0/oci_cli_docs/cmdref/ce.html for the CLI options.
145
+
Command to create a kubeconfig in your local could be obtained from console navigating to the OKE > Actions > Access Cluster. Run the command pointing to the PUBLIC_ENDPOINT and we should be connected to the cluster.
154
146
155
-
# 1. Create a private key for the service account
156
-
gcloud iam service-accounts keys create $KEY_FILE --iam-account $GCP_ACCOUNT
147
+
1.[Setup a context to connect to the dogfooding cluster](./release-cheat-sheet.md#setup-dogfooding-context)
157
148
158
-
# 2. Create kubernetes secret, which we will use via a service account and directly mounting
1. When executing release pipelines, some tasks require `oci cli` commands. The CLI requires credentials which should be created as a Kubernetes secret and mounted to the respective task's workspace. For example refer the precheck definition.
The dogfooding cluster is currently an OKE cluster in oracle cloud. we need the Oracle Cloud CLI client. Install oracle cloud cli (https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/cliinstall.htm)
0 commit comments