You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Error pulling private images for nodes deployed by KNE in kind cluster #149
deploying a KNE topology consisting of OTG and arista
both OTG and arista images are posted to private registry
using a kind cluster
There's currently no way to specify the registry secret for arista (or any other images deployed by KNE).
For ixia-c, creating secret called ixia-pull-secret works.
I'm wondering, may be we should define the name of secret expected by KNE as well ?
And may be, mandate vendor-specific controllers to use the same name for secret ?
Another issue is, pull secrets are only visible for a given namespace (at least by default).
So ideally one would have to create the secret before topology creation, using the same namespace used by the topology.
Thanks @alexmasi will look into this, but on the surface, pushing the keys to each node and restarting kubelet seems like a hack.
Moreover, private registries won't be limited to GAR/GCR. But then I also agree that there's always a workaround to pull images on the host and load them on kind nodes.
I wish there was a way to just create a secret in default namespace and refer to it from any namespace (created by KNE for topology).
Activity
alexmasi commentedon May 12, 2022
Looks like the private registries that you want to provide kind automatic access to are Google Artifact Registries, in this case try the option in the deployment yaml. https://github.com/google/kne/blob/f3c905c69b52d8c02a5b1f47d808c75c24c89144/deploy/deploy.go#L219
This option uses your access token (from
gcloud auth print-access-token) and applies across the entire cluster.Let me know if this works for you.
ashutshkumr commentedon May 13, 2022
Thanks @alexmasi will look into this, but on the surface, pushing the keys to each node and restarting kubelet seems like a hack.
Moreover, private registries won't be limited to GAR/GCR. But then I also agree that there's always a workaround to pull images on the host and load them on kind nodes.
I wish there was a way to just create a secret in default namespace and refer to it from any namespace (created by KNE for topology).
alexmasi commentedon May 13, 2022
The GAR solution was taken from the official kind docs: https://kind.sigs.k8s.io/docs/user/private-registries/
There is some more info there on private registry access in general