-
Notifications
You must be signed in to change notification settings - Fork 38
Open
Description
simple-helm-toolchain/.bluemix/pipeline.yml
Line 320 in efa9e86
| kubectl --namespace ${CLUSTER_NAMESPACE} create secret docker-registry ${IMAGE_PULL_SECRET_NAME} --docker-server=${REGISTRY_URL} --docker-password=${PIPELINE_BLUEMIX_API_KEY} --docker-username=iamapikey [email protected] |
It would be better to use a read-only registry token obtained with bx cr token-add --description "a token for ..." --non-expiring --quiet here. This avoids having the IBM Cloud API key inside a secret in the container. Plus it gives only read access to the registry.
The token can be used like this
kubectl --namespace <anamespace> create secret docker-registry <secret-name> \
--docker-server=registry.ng.bluemix.net \
--docker-password="<the token value>" \
--docker-username=token \
--docker-email="[email protected]"
Metadata
Metadata
Assignees
Labels
No labels