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
As the registry document said the benefits of proxy daemonset are:
SSL and authentication
The private registry runs as a Pod in your cluster. It does not currently support SSL or authentication, which triggers Docker's "insecure registry" logic. To work around this, we run a proxy on each node in the cluster, exposing a port onto the node (via a hostPort), which Docker accepts as "secure", since it is accessed by localhost.
we need to expose it onto each Kubernetes Node so that Docker will see it as localhost.
registry-proxy will create daemonset listen at hostPort:{{ registry_port }} which will redirect to the backend registry Service. Why not use ClusterIP to the registry service?
external access
registry-proxy listen at every node's port as the same as NodePort, but sometimes we may want to use ingress or LoadBalancer.
I suppose the proxy daemonset is not really needed, It is a legacy used at kubernetes <1.5.x when not support ClusterIP.
I would like to remove the proxy by follow steps:
add registry configmap to support SSL and authentication
update registry service to support of ClusterIP, nodePort or loadBalance
add registry ingress
remove the proxy at some milestone
The text was updated successfully, but these errors were encountered:
Since we have the hosted registry which you kindly augmented recently, why not just drop this registry proxy functionality ? From what I can tell (personally I was not even aware we had this) it is quite old and hackish.
I would go with your full plan to also drop the proxy.
Note that an ingress should be conditioned on the presence of an ingress controller which is not mandatory in a kubespray deployment.
Also please enable the proxy in on of the CI tests so we actually exercise this feature and know of any breakage later down the line, from what I can tell we don't have any coverage for this in CI.
Why is this needed:
As the registry document said the benefits of proxy daemonset are:
but actually docker-registry can enable SSL or authentication by config: https://docs.docker.com/registry/deploying/#get-a-certificate
registry-proxy will create daemonset listen at
hostPort:{{ registry_port }}
which will redirect to the backend registry Service. Why not useClusterIP
to the registry service?registry-proxy listen at every node's port as the same as
NodePort
, but sometimes we may want to useingress
orLoadBalancer
.I suppose the proxy daemonset is not really needed, It is a legacy used at kubernetes <1.5.x when not support ClusterIP.
I would like to remove the proxy by follow steps:
The text was updated successfully, but these errors were encountered: