apiVersion: v1
kind: Service
metadata:
  labels:
    app: sonar
  name: sonar
spec:
  ports:
    - port: 9000
      protocol: TCP
      targetPort: 9000
  selector:
    app: sonar
  sessionAffinity: None
  type: ClusterIP