apiVersion: v1 kind: Service metadata: name: prometheus namespace: monitoring labels: app: prometheus spec: type: ClusterIP ports: - port: 9090 targetPort: 9090 protocol: TCP name: web selector: app: prometheus