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