mirror of
https://github.com/carlosedp/cluster-monitoring.git
synced 2024-11-25 19:05:44 +01:00
17 lines
260 B
YAML
17 lines
260 B
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
labels:
|
|
prometheus: k8s
|
|
name: prometheus-k8s
|
|
namespace: monitoring
|
|
spec:
|
|
ports:
|
|
- name: web
|
|
port: 9090
|
|
targetPort: web
|
|
selector:
|
|
app: prometheus
|
|
prometheus: k8s
|
|
sessionAffinity: ClientIP
|