原创 k8s單節點備份及還原

A、yum –y install etcd etcdctl –v  查看etc版本 建議備份 /var/lib/etcd   /etc/kubernetes/ 查看文件位置及Liveness kubectl describe pod e

原创 批處理 bat ping

@echo off set now=%date% %time% echo %now%>>report.txt for /f %%i in (IP.txt) do (     ping -w 1 -n 2 %%i &&echo %%i /O

原创 K8s nfs掛載 PV PVC

apiVersion: v1 kind: Pod metadata:   name: httpd spec:   containers:   - image: httpd     name: httpd     volumeMounts:

原创 k8s安裝dashboard

官方參考https://kubernetes.io/docs/tasks/access-application-cluster/web-ui-dashboard/ wget https://raw.githubusercontent.co