运维知识库-BigHead
  • 首页
  • 电子书-知识库老版本
  • VIP视频免费看
  • 联系作者
  • 随笔
https://github.com/yongxiaodong
  1. 首页
  2. K8S
  3. 正文

Endpoint建立

2021年02月19日 1282点热度 0人点赞 0条评论

如将 以下3个IP的外部elasticsearch做成service名称,提供给pod内应用配置文件使用
- ip: 192.168.12.200
- ip: 192.168.12.201
- ip: 192.168.12.202

apiVersion: v1
kind: Endpoints
metadata:
  name: external-elasticsearch
  namespace: default
subsets:
- addresses:
  - ip: 192.168.12.200
  - ip: 192.168.12.201
  - ip: 192.168.12.202
  ports:
  - port: 9200
    protocol: TCP
---
apiVersion: v1
kind: Service
metadata:
  name: external-cms-elasticsearch
  namespace: default
spec:
  clusterIP: None
  ports:
  - port: 9200
    protocol: TCP
    targetPort: 9200
标签: 暂无
最后更新:2021年03月09日

BigHead

保持饥渴的专注,追求最佳的品质

点赞
< 上一篇
下一篇 >

文章评论

取消回复
文章归档
  • 2022年7月
  • 2021年6月
  • 2021年4月
  • 2021年3月
  • 2021年2月
  • 2020年8月
  • 2020年7月
分类目录
  • ELK
  • Jenkins
  • K8S
  • Nginx
  • Openvpn
  • Python
  • 小技能
  • 未分类

COPYRIGHT © 2020 运维知识库-BigHead. ALL RIGHTS RESERVED.

蜀ICP备16012425号