资料收集:
- https://stackoverflow.com/questions/63974879/microk8s-metallb-ingress-nginx-how-to-route-external-traffic
- https://pacroy.medium.com/single-node-kubernetes-on-home-lab-using-microk8s-metallb-and-traefik-7bb1ea38fcc2
- SSL: https://stackoverflow.com/questions/67430592/how-to-setup-letsencrypt-with-kubernetes-microk8s-using-default-ingress
验证:
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,半成品,但是可以用,更新中…