apiVersion: v1
kind: Service
metadata:
  annotations:
    prometheus.io/scrape: "true"
  name: kubernetesapp-svc
  namespace: default 
  labels:
    app: KubernetesApp
spec:
  ports:
    - name: http
      port: 80
      protocol: TCP
      targetPort: 80
  selector:
    app: KubernetesApp
  type: ClusterIP