Mercurial > code > home > repos > victoriametrics
diff deploy.yaml @ 0:7fe15c93585a
start
author | drewp@bigasterisk.com |
---|---|
date | Wed, 09 Feb 2022 00:20:56 -0800 |
parents | |
children | cd83f8fecc66 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/deploy.yaml Wed Feb 09 00:20:56 2022 -0800 @@ -0,0 +1,58 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: victoriametrics +spec: + replicas: 1 + strategy: { type: Recreate } + selector: + matchLabels: + app: victoriametrics + template: + metadata: + labels: + app: victoriametrics + annotations: { "prometheus.io/scrape": "false" } + spec: + volumes: + - name: data + persistentVolumeClaim: + claimName: opt-victoriametrics + serviceAccountName: victoriametrics + containers: + - name: victoriametrics + image: victoriametrics/victoria-metrics:heads-public-single-node-0-gd0f785def + args: + - -storageDataPath=/data + - -memory.allowedBytes=512MB + - -http.pathPrefix=/m/ + - -promscrape.config=/data/scrape_config.yaml + - -loggerTimezone=America/Los_Angeles + - -retentionPeriod=10y + - -sortLabels + ports: + - containerPort: 8428 + volumeMounts: + - { name: data, mountPath: /data } + resources: + limits: + memory: 0.5Gi + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: "kubernetes.io/hostname" + operator: In + values: ["bang"] +--- +apiVersion: v1 +kind: Service +metadata: + name: victoriametrics +spec: + ports: + - port: 80 + targetPort: 8428 + selector: + app: victoriametrics