2021年12月10日
摘要: kubect get 资源名 -o go-template可以用来获取资源里的某个属性值。 在前一篇文章里有两处用到了go-template,以这两处为例子,来说明go-template的用法 第一处,从kubectl get services/webapp1-clusterip-targetpor 阅读全文
posted @ 2021-12-10 15:43 吃鱼高手 阅读(946) 评论(0) 推荐(0)
摘要: Service的发布方式主要有四种: Cluster IP, NodePort, external IP, LoadBalancer 1. 先来看看Cluster IP, 1)cluster_ip.yaml, 在此yaml文件中,service的yaml里没有定义任何type,那么就用默认的clus 阅读全文
posted @ 2021-12-10 11:22 吃鱼高手 阅读(207) 评论(0) 推荐(0)