Skip to content

Instantly share code, notes, and snippets.

@herpiko
Last active August 15, 2018 20:35
Show Gist options
  • Save herpiko/cb3858f4f2bafee4c14bea8597576733 to your computer and use it in GitHub Desktop.
Save herpiko/cb3858f4f2bafee4c14bea8597576733 to your computer and use it in GitHub Desktop.
k8s stuff

docker registry non https

  • Add { "insecure-registries":["myregistry.example.com:5000"] } to /etc/docker/daemon.json, then restart the Docker service.

registry via kube

kubectl port-forward --namespace kube-system \
$(kubectl get po -n kube-system | grep kube-registry-v0 | \
awk '{print $1;}') 5000:5000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment