Closed majelbstoat closed 6 years ago
If it helps, this is what I do to make kubectl work with gcr.io in the same way:
kubectl create secret docker-registry gcr \
--docker-server=https://gcr.io \
--docker-username=oauth2accesstoken \
--docker-password="$(gcloud auth print-access-token)" \
--docker-email=me@myemail.com
kubectl patch serviceaccount default -p '{"imagePullSecrets": [{"name": "gcr"}]}'
I've made the key optional in forge 0.4.0. If you omit the key for a gcr registry, then forge will automatically use gcloud auth print-access-token
for the password. (You will need to run gcloud auth login
or gcloud auth activate-service-account
prior to running forge.)
Per Gitter conversation: https://gitter.im/datawire/forge?at=5a7916cbce68c3bc744d7ad6