阿里云测试 MicroK8s 笔记

资料收集:

验证:

2021-06-24

kubectl remote control
get config

microk8s kubectl config view --raw > $HOME/.kube/config

save the config file to local $HOME/.kube/config

设置端口转发

## minikube is my remote server ip address
ssh -fNT -L 16443:127.0.0.1:16443 microkube

now: kubectl get node

(base) ➜  .kube kubectl get nodes -o wide
NAME       STATUS   ROLES    AGE   VERSION                    INTERNAL-IP   EXTERNAL-IP   OS-IMAGE             KERNEL-VERSION     CONTAINER-RUNTIME
minikube   Ready    <none>   50m   v1.21.1-3+ba118484dd39df   10.0.0.247    <none>        Ubuntu 20.04.2 LTS   5.4.0-74-generic   containerd://1.4.4

2021-06-27

发布WordPress 到 MicroK8s,半成品,但是可以用,更新中…

Deploy WordPress to MicroK8s