om/k8s/有状态存储.md

30 lines
587 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

1. 抽取配置ConfigMap配置字典security
2. 使用PVC持久化存储数据
3. 使用DNS提供稳定的域名
持久卷-服务服务和pod-应用路由(集群外访问)
应用路由
service中包含dns
```shell
ping sv-mdm.mdm-9-22
ping sv-mdm.mdm-9-22.svc.cluster.local
```
headless-service域名仅供k8s内部使用
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.8.2/deploy/static/provider/cloud/deploy.yaml
nslookup 查看域名
kubectl get pods --namespace=ingress-nginx
setforset
opeanelbapisix