service.yaml 343 B

123456789101112131415161718
  1. apiVersion: v1
  2. kind: Service
  3. metadata:
  4. name: $4
  5. labels:
  6. app.kubernetes.io/name: $1
  7. app.kubernetes.io/part-of: $2
  8. spec:
  9. ports:
  10. - port: 80
  11. protocol: TCP
  12. targetPort: 80
  13. name: http
  14. selector:
  15. app.kubernetes.io/name: $1
  16. app.kubernetes.io/part-of: $2
  17. type: ${3:$$(yas-choose-value "ClusterIP" "LoadBalancer")}