:%s/nginx/myapp/g 换名字
kubectl get pod -n kube-system |grep kube-proxy | awk '{system("kubectl delete pod
"$1" -n kube-system")}' //更新kube-proxy p
headless service (无头模式)
pod滚动更新后,依然可以解析
设置ipvs模式:
• kubectl edit configmap -n kube-system kube-proxy
apiVersion: kubeproxy.config.k8s.io/v1alpha1
kind: KubeProxyConfiguration
mode: "ipvs"
ipvs:
strictARP: true
部署:
wget https://raw.githubusercontent.com/metallb/metallb/v0.12.1/manifests/namespace.yaml • wget https://raw.githubusercontent.com/metallb/metallb/v0.12.1/manifests/metallb.yaml
dig -t A ex-service.default.svc.cluster.local. @10.96.0.10