mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-11 21:12:07 +00:00
Add automatic prometheus monitoring to the cockroachdb example
This commit is contained in:
parent
1e7545393f
commit
01cf564eaa
@ -2,7 +2,12 @@ apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
annotations:
|
||||
# Make sure DNS is resolvable during initialization.
|
||||
service.alpha.kubernetes.io/tolerate-unready-endpoints: "true"
|
||||
# Enable automatic monitoring of all instances when Prometheus is running in the cluster.
|
||||
prometheus.io/scrape: "true"
|
||||
prometheus.io/path: "_status/vars"
|
||||
prometheus.io/port: "8080"
|
||||
name: cockroachdb
|
||||
labels:
|
||||
app: cockroachdb
|
||||
|
@ -54,6 +54,8 @@ kind: PersistentVolumeClaim
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: datadir-cockroachdb-${i}
|
||||
labels:
|
||||
app: cockroachdb
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
|
Loading…
Reference in New Issue
Block a user