Open patrocinio opened 6 years ago
@patrocinio Hi
For IAM, we have to use apikey:
and resource_instance_id:
from the service credentials.
Convert these value to base64 and set as api-key:
& service-instance-id:
in following cmd
kubectl apply -f - <<EOF
apiVersion: v1
kind: Secret
type: ibm/ibmc-s3fs
metadata:
name: test-secret
namespace: <NAMESPACE_NAME>
data:
api-key: <api key encoded in base64 (for IAM OAuth)>
service-instance-id: <service-instance-id encoded in base64 (for IAM OAuth + bucket creation)>
EOF
Some time, the key value may corrupt during copy-paste operation, I recommend to use the utility
create-k8s-secret
(https://github.com/IBM/ibmcloud-object-storage-plugin/tree/master/tools/IBM)
To use the utility
$ ibmcloud login -a api.ng.bluemix.net -u <user id>
$ export KUBECONFIG=<armada cluster config file>
$ ibmcloud resource service-instances
$ ibmcloud resource service-keys --instance-name <instance name>
create-k8s-secret
as follows
./create-k8s-secret iam <service-key> <secret name> <K8S namespace
Thanks, @nkkashyap I will try apikey and resource_instance_id again. Notice I am not using IKS / Armada.
The documentation to specify either (access-key + secret-key) or (api-key + service-instance-id):
Here are the values from my COS instance:
Which values should I specify?
This is the error I am getting when I specify api-key + service-instance-id:
Thanks!