nas.yml 324 B

123456789101112131415161718192021222324
  1. apiVersion: v1
  2. kind: Service
  3. metadata:
  4. name: nas
  5. spec:
  6. ports:
  7. - name: app
  8. port: 80
  9. protocol: TCP
  10. targetPort: 5001
  11. clusterIP: None
  12. type: ClusterIP
  13. ---
  14. apiVersion: v1
  15. kind: Endpoints
  16. metadata:
  17. name: nas
  18. subsets:
  19. - addresses:
  20. - ip: 192.168.2.44
  21. ports:
  22. - name: app
  23. port: 5001
  24. protocol: TCP