# PROW_INSTANCE_SPECIFIC
# Domains are different among prow instances
---
apiVersion: v1
kind: Service
metadata:
  labels:
    app: grafana
  name: grafana
  namespace: prow-monitoring
spec:
  type: NodePort
  sessionAffinity: ClientIP
  ports:
  - name: http
    port: 3001
    targetPort: http
  - name: nginx
    port: 80
    targetPort: nginx
  selector:
    app: grafana
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  annotations:
    kubernetes.io/ingress.global-static-ip-name: prow-monitoring-grafana
    kubernetes.io/ingress.class: "gce"
    networking.gke.io/managed-certificates: monitoring-prow-k8s-io
  name: grafana
  namespace: prow-monitoring
spec:
  rules:
  - host: monitoring.prow.k8s.io
    http:
      paths:
      - path: /*
        pathType: ImplementationSpecific
        backend:
          serviceName: grafana
          servicePort: 80

# PROW_INSTANCE_SPECIFIC
# Domains are different among prow instances
---
apiVersion: v1
kind: Service
metadata:
  labels:
    app: grafana
  name: grafana
  namespace: prow-monitoring
spec:
  type: NodePort
  sessionAffinity: ClientIP
  ports:
  - name: http
    port: 3001
    targetPort: http
  - name: nginx
    port: 80
    targetPort: nginx
  selector:
    app: grafana
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  annotations:
    kubernetes.io/ingress.global-static-ip-name: prow-monitoring-grafana
    kubernetes.io/ingress.class: "gce"
    networking.gke.io/managed-certificates: monitoring-prow-k8s-io
  name: grafana
  namespace: prow-monitoring
spec:
  rules:
  - host: monitoring.prow.k8s.io
    http:
      paths:
      - path: /*
        pathType: ImplementationSpecific
        backend:
          service:
            name: grafana
            port:
              number: 80

Fix grafana ingress for new API version.
Fix grafana ingress for new API version.
