You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
558 B
23 lines
558 B
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/component: prometheus
|
|
app.kubernetes.io/name: prometheus
|
|
app.kubernetes.io/part-of: kube-prometheus
|
|
app.kubernetes.io/version: 2.29.1
|
|
prometheus: k8s
|
|
name: prometheus-k8s
|
|
namespace: monitoring
|
|
spec:
|
|
ports:
|
|
- name: web
|
|
port: 9090
|
|
targetPort: web
|
|
selector:
|
|
app: prometheus
|
|
app.kubernetes.io/component: prometheus
|
|
app.kubernetes.io/name: prometheus
|
|
app.kubernetes.io/part-of: kube-prometheus
|
|
prometheus: k8s
|
|
sessionAffinity: ClientIP
|
|
|