Skip to content

Instantly share code, notes, and snippets.

@pshchelo
Created June 25, 2019 09:03
Show Gist options
  • Save pshchelo/ba86e1f94def90319ecb52f49d9cbf06 to your computer and use it in GitHub Desktop.
Save pshchelo/ba86e1f94def90319ecb52f49d9cbf06 to your computer and use it in GitHub Desktop.
Canonical MicroK8s tips

MicroK8S tips

https://microk8s.io/docs/

enable DNS and Registry support

microk8s.enable dns registry

if needed, add extra DNS to the kube-dns

microk8s.kubectl -n kube-system edit configmap/kube-dns

enable port forwarding on your machine

sudo iptables -P FORWARD ACCEPT

also see microk8s.inspect

build local image with docker

docker build . -t localhost:32000/osh-operator:registry

push it to the microk8s registry

docker push localhost:32000/osh-operator

redeploy the operator

kubect delete -f deployment.yaml && kubectl apply -f deployment.yaml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment