📜  kubernetes 服务 yaml - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:41.701000             🧑  作者: Mango

代码示例1
apiVersion: v1
kind: Service
metadata:
  name: my-service
spec:
  selector:
    app: MyApp
  ports:
    - protocol: TCP
      port: 80
      targetPort: 9376