17 lines
277 B
YAML
17 lines
277 B
YAML
|
apiVersion: v1
|
||
|
kind: Service
|
||
|
metadata:
|
||
|
name: prometheus-svc
|
||
|
namespace: monitoring
|
||
|
labels:
|
||
|
app.kubernetes.io/name: prometheus
|
||
|
spec:
|
||
|
ports:
|
||
|
- name: web
|
||
|
port: 9090
|
||
|
protocol: TCP
|
||
|
targetPort: web
|
||
|
selector:
|
||
|
app.kubernetes.io/name: prometheus
|
||
|
|