apiVersion: v1
kind: Service
metadata:
  labels:
    name: monitoring
  name: monitoring
  namespace: springcloud
spec:
  type: NodePort
  ports:
  - port: 8080
    protocol: TCP
    targetPort: 8080
    nodePort: 8080
  - port: 8089
    protocol: TCP
    targetPort: 8089
    nodePort: 8080
  selector:
    name: monitoring