lsergio commented on issue #5225:
URL: https://github.com/apache/camel-k/issues/5225#issuecomment-1985515742
@mhd-robaii I think your issue is related to how the secret that is
reference here was created:
```
Registry:
Address: eu.gcr.io
Insecure: true
Organization: iot-staging-3
Secret: camel-k-builder
```
If you have done so using a command like this:
```
kubectl create secret generic camel-k-builder --from-file=your-key.json
```
you will get the authorization error, because that is not the format that
Spectrum expects.
I had the same issue and fixed it by creating the secret like below:
```
kubectl create secret docker-registry camel-k-builder \
--docker-server=gcr.io \
--docker-username=_json_key \
--docker-password="$(cat your-key.json)" \
[email protected]
```
where the secret type is docker-registry and not generic.
The username and email can be any one, they're not really used, and the
server should be adjusted for your registry.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]