k8s中service相关yaml文件

service

apiVersion: v1
kind: Service
metadata:
  creationTimestamp: null
  labels:
    app: nginx
  name: nginx1
spec:
  ports:
  - port: 80
    protocol: TCP
    targetPort: 80
  selector:
    app: nginx
  type: NodePort
status:
  loadBalancer: {}
posted @ 2020-12-15 15:13  Richardo-M-Lu  阅读(601)  评论(0编辑  收藏  举报