K8S กึ่งสำเร็จรูป

K8S VM Spec
Ubuntu Features
~$ sudo apt-get update \
&& sudo apt-get upgrade -y \
&& sudo apt-get dist-upgrade -y \
&& sudo apt-get clean \
&& sudo apt-get autoremove -y
Ubuntu update
Ubuntu Update finish
~$ sudo snap install microk8s --classic
~$ snap info microk8s
~$ snap install microk8s --channel {version/channel} --classic
MicroK8s install progress
MicrroK8s Install Success
~$ microk8s.kubectl get all --all-namespaces
kubernetes namespaces
~$ microk8s.kubectl cluster-info
Kubernetes cluster info
~$ microk8s.kubectl get no
Kubernetes Node info
~$ microk8s.enable dns dashboard
Kubernetes dns dashboard enable
~$  watch microk8s.kubectl get all --all-namespaces
Kubernetes DNS Dashboard
~$ microk8s.enable dns dashboard ingress
Kubernetes enable ingress dashboard
~$ microk8s.kubectl proxy --accept-hosts=.* --address= &
Kubernetes proxy start
Kubernetes Dashboard login
Kubernetes Ingress dashboard
~$ sudo snap alias microk8s.kubectl kubectl
Docker pull redis image
~$ microk8s.enable --help
Kubernetes enable add-on
~$ microk8s.inspect
Kubernetes inspect
~$ sudo snap remove microk8s
Remove Kubernetes
$> sudo iptables -P FORWARD ACCEPT
$> sudo ufw default allow routed
$> microk8s.stop
$> microk8s.start
$> microk8s.reset
$> sudo snap remove microk8s




Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
วัฒนชัย วงศ์ประเสริฐ

วัฒนชัย วงศ์ประเสริฐ

Rogue Planet

More from Medium

Full setup of a Kubernetes K3D cluster managed by Flux on a local Git server

Youtube recording of the live session on the interactive mode

I Made a Local Kubernetes Startup Script So You Don’t Have To

lk8s up

Getting Started with Minikube Kubernetes

Sealed Secrets for Kubernetes