Creating API key secret
This section helps you to create the Cloudera AI API Key secret in the observability namespace, which is control-plane-namespace-obs.
To create the secret, run the following command:
kubectl create secret generic cai-[***workbench-name***] \ -n [***
control-plane-namespace***]-obs \ --save-config \ --dry-run=client \
--from-literal=apiKeyV2="$(tr -d '\n\r ' < '[***api-key-path***]')" \ -o
yaml | \ kubectl apply -f -
