Mercurial > code > home > repos > victoriametrics
annotate deploy_vmetrics.yaml @ 28:e114edff93dc
more explicit intervals. try to get a single day of notification out of a disk err increase
author | drewp@bigasterisk.com |
---|---|
date | Wed, 19 Jul 2023 21:17:22 -0700 |
parents | 10127391f6f3 |
children |
rev | line source |
---|---|
0 | 1 apiVersion: apps/v1 |
2 kind: Deployment | |
3 metadata: | |
4 name: victoriametrics | |
5 spec: | |
6 replicas: 1 | |
7 strategy: { type: Recreate } | |
8 selector: | |
9 matchLabels: | |
10 app: victoriametrics | |
11 template: | |
12 metadata: | |
13 labels: | |
14 app: victoriametrics | |
7
7130eb6d8e6b
redo deployment config to use skaffold live sync instead of busted CM way
drewp@bigasterisk.com
parents:
4
diff
changeset
|
15 annotations: |
7130eb6d8e6b
redo deployment config to use skaffold live sync instead of busted CM way
drewp@bigasterisk.com
parents:
4
diff
changeset
|
16 prometheus.io/scrape: "true" |
7130eb6d8e6b
redo deployment config to use skaffold live sync instead of busted CM way
drewp@bigasterisk.com
parents:
4
diff
changeset
|
17 prometheus.io/path: "/m/metrics" |
7130eb6d8e6b
redo deployment config to use skaffold live sync instead of busted CM way
drewp@bigasterisk.com
parents:
4
diff
changeset
|
18 prometheus.io/port: "80" |
0 | 19 spec: |
20 volumes: | |
21 - name: data | |
22 persistentVolumeClaim: | |
23 claimName: opt-victoriametrics | |
4
1eb6e6a2b9b6
version control configs finally; use configmaps to present them to VM
drewp@bigasterisk.com
parents:
3
diff
changeset
|
24 - name: config |
1eb6e6a2b9b6
version control configs finally; use configmaps to present them to VM
drewp@bigasterisk.com
parents:
3
diff
changeset
|
25 configMap: {name: victoriametrics-config} |
0 | 26 serviceAccountName: victoriametrics |
27 containers: | |
28 - name: victoriametrics | |
3 | 29 # https://hub.docker.com/r/victoriametrics/victoria-metrics/tags also check vmalert.yaml |
20 | 30 image: docker.io/victoriametrics/victoria-metrics:v1.91.2 |
0 | 31 args: |
7
7130eb6d8e6b
redo deployment config to use skaffold live sync instead of busted CM way
drewp@bigasterisk.com
parents:
4
diff
changeset
|
32 - -http.pathPrefix=/m/ |
7130eb6d8e6b
redo deployment config to use skaffold live sync instead of busted CM way
drewp@bigasterisk.com
parents:
4
diff
changeset
|
33 - -loggerTimezone=America/Los_Angeles |
0 | 34 - -memory.allowedBytes=512MB |
20 | 35 - -promscrape.config=/local/config/scrape_main |
7
7130eb6d8e6b
redo deployment config to use skaffold live sync instead of busted CM way
drewp@bigasterisk.com
parents:
4
diff
changeset
|
36 - -promscrape.configCheckInterval=5s |
0 | 37 - -retentionPeriod=10y |
38 - -sortLabels | |
7
7130eb6d8e6b
redo deployment config to use skaffold live sync instead of busted CM way
drewp@bigasterisk.com
parents:
4
diff
changeset
|
39 - -storageDataPath=/data |
0 | 40 ports: |
41 - containerPort: 8428 | |
42 volumeMounts: | |
43 - { name: data, mountPath: /data } | |
20 | 44 - { name: config, mountPath: "/local/config" } |
0 | 45 affinity: |
46 nodeAffinity: | |
47 requiredDuringSchedulingIgnoredDuringExecution: | |
48 nodeSelectorTerms: | |
49 - matchExpressions: | |
50 - key: "kubernetes.io/hostname" | |
51 operator: In | |
16 | 52 values: ["ditto"] |
0 | 53 --- |
54 apiVersion: v1 | |
55 kind: Service | |
56 metadata: | |
57 name: victoriametrics | |
58 spec: | |
59 ports: | |
60 - port: 80 | |
61 targetPort: 8428 | |
62 selector: | |
63 app: victoriametrics |