kubernetes-yaml/learn/learn-kubernetes-master/kiamol/ch14/prometheus/prometheus-service.yaml

13 lines
205 B
YAML

apiVersion: v1
kind: Service
metadata:
name: prometheus
namespace: kiamol-ch14-monitoring
spec:
selector:
app: prometheus
type: LoadBalancer
ports:
- port: 9090
targetPort: 9090