Skip to content

Commit 6082205

Browse files
committed
oopsdb: db pod annotations
1 parent 292f01d commit 6082205

File tree

3 files changed

+36
-1
lines changed

3 files changed

+36
-1
lines changed

Diff for: charts/oopsdb/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: oopsdb
33
description: A Helm chart to deploy the demo services for OopsDB
44
type: application
5-
version: 0.1.0
5+
version: 0.1.1
66
appVersion: "1.1.5"
77
dependencies:
88
- name: postgres-operator

Diff for: charts/oopsdb/templates/postgres.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,9 @@ spec:
2727
limits:
2828
cpu: "4"
2929
memory: 8Gi
30+
podAnnotations:
31+
coroot.com/postgres-scrape: "false"
32+
coroot.com/postgres-scrape-credentials-secret-name: coroot.odb-postgres.credentials.postgresql.acid.zalan.do
33+
coroot.com/postgres-scrape-credentials-secret-username-key: username
34+
coroot.com/postgres-scrape-credentials-secret-password-key: password
35+
coroot.com/postgres-scrape-param-sslmode: require

Diff for: charts/oopsdb/values.yaml

+29
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,25 @@ mysql:
1313
database: "app"
1414
createDatabase: true
1515
existingSecret: "{{ .Release.Name }}-mysql-secret"
16+
primary:
17+
podAnnotations:
18+
coroot.com/mysql-scrape: "true"
19+
coroot.com/mysql-scrape-port: "3306"
20+
coroot.com/mysql-scrape-credentials-username: "root"
21+
coroot.com/mysql-scrape-credentials-secret-name: "{{ .Release.Name }}-mysql-secret"
22+
coroot.com/mysql-scrape-credentials-secret-password-key: "mysql-root-password"
23+
secondary:
24+
podAnnotations:
25+
coroot.com/mysql-scrape: "true"
26+
coroot.com/mysql-scrape-port: "3306"
27+
coroot.com/mysql-scrape-credentials-username: "root"
28+
coroot.com/mysql-scrape-credentials-secret-name: "{{ .Release.Name }}-mysql-secret"
29+
coroot.com/mysql-scrape-credentials-secret-password-key: "mysql-root-password"
1630

1731
mongodb:
32+
podAnnotations:
33+
coroot.com/mongodb-scrape: "true"
34+
coroot.com/mongodb-scrape-port: "27017"
1835
architecture: replicaset
1936
auth:
2037
enabled: false
@@ -23,15 +40,27 @@ mongodb:
2340
livenessProbe:
2441
enabled: false
2542

43+
memcached:
44+
podAnnotations:
45+
coroot.com/memcached-scrape: "true"
46+
coroot.com/memcached-scrape-port: "11211"
47+
2648
redis:
2749
architecture: standalone
2850
auth:
2951
enabled: false
3052
master:
53+
podAnnotations:
54+
coroot.com/redis-scrape: "true"
55+
coroot.com/redis-scrape-port: "6379"
3156
persistence:
3257
enabled: true
3358

3459

3560

3661

3762

63+
64+
65+
66+

0 commit comments

Comments
 (0)