Skip to content

Commit

Permalink
salt: Re-render prometheus-operator deployment formula
Browse files Browse the repository at this point in the history
Since we changed retention time and size in the
charts, we need to regen it to apply changes.

```
./charts/render.py prometheus-operator \
  charts/kube-prometheus-stack.yaml \
  charts/kube-prometheus-stack/ \
  --namespace metalk8s-monitoring \
  --service-config grafana \
  metalk8s-grafana-config \
  metalk8s/addons/prometheus-operator/config/grafana.yaml \
  metalk8s-monitoring \
  --service-config prometheus \
  metalk8s-prometheus-config \
  metalk8s/addons/prometheus-operator/config/prometheus.yaml \
  metalk8s-monitoring \
  --service-config alertmanager \
  metalk8s-alertmanager-config \
  metalk8s/addons/prometheus-operator/config/alertmanager.yaml \
  metalk8s-monitoring \
  --service-config dex \
  metalk8s-dex-config \
  metalk8s/addons/dex/config/dex.yaml.j2 metalk8s-auth \
  --drop-prometheus-rules charts/drop-prometheus-rules.yaml \
  > salt/metalk8s/addons/prometheus-operator/deployed/chart.sls
```

Refs: #2953
  • Loading branch information
alexandre-allard committed Dec 15, 2020
1 parent 7558abe commit 8b47414
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions salt/metalk8s/addons/prometheus-operator/deployed/chart.sls
Original file line number Diff line number Diff line change
Expand Up @@ -53429,7 +53429,7 @@ spec:
- --path.sysfs=/host/sys
- --path.rootfs=/host/root
- --web.listen-address=$(HOST_IP):9100
- --collector.diskstats.ignored-devices=^(ram|fd|(h|s|v)d[a-z]|nvme\\d+n\\d+p)\\d+$
- --collector.diskstats.ignored-devices=^(ram|fd)\\d+$
- --collector.filesystem.ignored-mount-points=^/(dev|proc|sys|var/lib/docker/.+)($|/)
- --collector.filesystem.ignored-fs-types=^(autofs|binfmt_misc|cgroup|configfs|debugfs|devpts|devtmpfs|fusectl|hugetlbfs|mqueue|overlay|proc|procfs|pstore|rpc_pipefs|securityfs|sysfs|tracefs)$
env:
Expand Down Expand Up @@ -53924,7 +53924,8 @@ spec:
matchLabels:
release: prometheus-operator
replicas: {% endraw -%}{{ prometheus.spec.deployment.replicas }}{%- raw %}
retention: 10d
retention: {% endraw -%}{{ prometheus.spec.config.retention_time }}{%- raw %}
retentionSize: "{% endraw -%}{{ prometheus.spec.config.retention_size | string }}{%- raw %}"
routePrefix: /
ruleNamespaceSelector: {}
ruleSelector:
Expand Down

0 comments on commit 8b47414

Please sign in to comment.