博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
kubenetes 的svc从ClusterPort 改为NodePort
阅读量:4323 次
发布时间:2019-06-06

本文共 359 字,大约阅读时间需要 1 分钟。

1.yaml文件如下

spec:  clusterIP: 10.233.43.125  ports:  - name: http-metrics    port: 8080    protocol: TCP    targetPort: http-metrics  - name: telemetry    port: 8081    protocol: TCP    targetPort: telemetry  selector:    k8s-app: kube-state-metrics  sessionAffinity: None  #type: ClusterIP  type: NodePort

 

转载于:https://www.cnblogs.com/hixiaowei/p/11551549.html

你可能感兴趣的文章
Erdos
查看>>
docker初学
查看>>
面向对象的程序第三次实验作业
查看>>
Windows 安装启动apache时出现错误的解决方法
查看>>
Object.prototype.toString()
查看>>
int.Parse()与int.TryParse()
查看>>
c#调用钩子
查看>>
最近最少使用队列算法
查看>>
ONOS:负载均衡路由算法及应用开发(二)
查看>>
把js写到链接a标签的href中和写到onclick中的区别
查看>>
压缩解压缩命令
查看>>
MySQL基于binlog主从复制
查看>>
HDU 1394(归并求逆序对)
查看>>
配置 Windows 下的 nodejs C++ 模块编译环境 安装 node-gyp
查看>>
我和Socket的第一次亲密接触
查看>>
2016/09/22
查看>>
2016/09/02
查看>>
项目中遇到的Redis缓存问题
查看>>
Effective Java 之-----静态工厂与构造器
查看>>
linux 命令(9) top
查看>>