Skip to content

Instantly share code, notes, and snippets.

@mdamaceno
Last active January 23, 2019 12:12
Show Gist options
  • Save mdamaceno/db5e7c2333601ac36515f4020c797478 to your computer and use it in GitHub Desktop.
Save mdamaceno/db5e7c2333601ac36515f4020c797478 to your computer and use it in GitHub Desktop.
Como instalar Microk8s com Docker e Helm

Instruções

Instalar Microk8s

Seguir instruções em https://microk8s.io/docs/

Inserir contexto do Microk8s no comando kubectl para o Helm

$ mkdir $HOME/.kube
$ touch $HOME/.kube/config
$ microk8s.config > ~/.kube/config

Instalar Helm

Seguir instruções em https://docs.helm.sh/using_helm/#installing-helm

Criar alias para o comando docker

$ sudo snap alias microk8s.docker docker
$ export DOCKER_HOST="unix:///var/snap/microk8s/current/docker.sock"

Criar alias para o comando kubectl (opcional)

$ sudo snap alias microk8s.kubectl kubectl
$ sudo snap alias microk8s.kubectl kb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment