Updating OCI Configuration in the OCI Configuration File
The OCI configuration file (~/.oci/config) includes user credentials
information such as user, fingerprint, key_file and so on that's used to
authenticate users when they access OCI resources. You must update the OCI configuration
information in the configuration file regularly to ensure only authorized users can access
the OCI resources.
To update the OCI configuration in the configuration file, perform the following tasks:
- Update the OCI configuration in the SCM container:
- Update the private key file path, fingerprint and so on, in the OCI
configuration file (
~/.oci/config). - Update the new private key in the
~/.oci/user.pemfile.
- Update the private key file path, fingerprint and so on, in the OCI
configuration file (
- If you've enabled observability (that's, if you've set the value of the parameters
siebel_monitoringandenable_oci_monitoringtotrue), update the OCI configuration in Helm chart repository:Update the Prometheus Helm chart:
- Go to the
prometheusHelm chart directory:cd /home/opc/siebel/<namespace>-helmcharts/prometheus - Update the fingerprint and so on, in the
oci_config/configfile. - Update the new private key in the
oci_api_key.pemfile. - Increment the chart version in the
Chart.yamlfile. - Commit the changes in the Git
repository:
git add . git commit -m "Updated OCI Configuration" git push
- Go to the
- If you've enabled logging (that's, if you've set the value of the parameters
siebel_loggingandenable_oci_log_analyticstotrue), update the OCI configuration in Helm chart repository:Update the Siebel logging Helm chart:
- Go to the
siebel-loggingdirectory:cd /home/opc/siebel/<namespace>-helmcharts/siebel-logging - Update the fingerprint and so on, in the
oci_config/configfile. - Update the new private key in the
oci_api_key.pemfile. - Increment chart version in the
Chart.yamlfile. - Commit the changes in the Git
repository:
git add . git commit -m "Updated OCI Configuration" git push
- Go to the
- Perform the flux reconcile manually:
source /home/opc/siebel/<env_id>/k8sprofile flux reconcile source git siebel-repo -n <namespace> flux reconcile kustomization apps -n <namespace> - Restart the
pods:
kubectl rollout restart deploy prometheus-adapter-deployment -n <namespace> kubectl rollout restart deploy log-aggregator -n <namespace> - Verify the Prometheus adapter deployment pod logs and log aggregator pod logs to ensure that you aren't receiving the "401 Not Authenticated" error.