DEV Community

Discussion on: Using GitHub Container Registry with Kubernetes

Collapse
 
elpddev profile image
Eyal Lapid

I have also succesfuly used the create secret kubectl cli command. It has the benefit of doing the transformation for you.

kubectl create secret docker-registry mysecretname --docker-server=https://ghcr.io --docker-username=mygithubusername --docker-password=mygithubreadtoken --docker-email=mygithubemail
Enter fullscreen mode Exit fullscreen mode