Ubuntu에 micro kubernetes 설치하기

sudo -i
snap install microk8s –classic –channel=1.25
usermod -aG microk8s $USER
chown -f -R $USER ~/.kube
su – $USER
microk8s status –wait-ready
microk8s enable dns ingress storage
microk8s.kubectl get ns

echo ‘source <(microk8s.kubectl completion bash)’ >> ~/.bashrc
echo ‘alias k=microk8s.kubectl’ >> ~/.bashrc
echo ‘complete -o default -F __start_kubectl k’ >> ~/.bashrc
exec bash

k get ns
k get node -o wide
k get pod -A

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s