TheNewNormal / coreos-osx

Local development docker/rkt CoreOS VM App for macOS made very simple
Apache License 2.0
399 stars 40 forks source link

Kubernetes Pulling from GCP #101

Open harrytraynor opened 7 years ago

harrytraynor commented 7 years ago

Hello,

If you were trying to pull an image from Google Container store, it would obviously error as the authentication would not be present. What is the best practice for setting this up/getting around it?

Thanks in advance.

rimusz commented 7 years ago

try one of these options http://kubernetes.io/docs/user-guide/images/#specifying-imagepullsecrets-on-a-pod

harrytraynor commented 7 years ago

@rimusz I am fairly new to GCP - so where would I find the registry key to make this possible? Thanks for the response so far though.

rimusz commented 7 years ago

first you need to create service key the check how to use it at https://cloud.google.com/container-registry/docs/advanced-authentication at Using a JSON key file part