1. apiVersion: v1
    2. kind: Service
    3. metadata:
    4. labels:
    5. app: nacos
    6. name: nacos-headless
    7. namespace: support
    8. spec:
    9. clusterIP: None
    10. ports:
    11. - name: server
    12. port: 8848
    13. protocol: TCP
    14. targetPort: 8848
    15. - name: rpc
    16. port: 7848
    17. protocol: TCP
    18. targetPort: 7848
    19. selector:
    20. app: nacos