Skip to content

Commit

Permalink
Merge pull request #35 from w3f/new-chart
Browse files Browse the repository at this point in the history
updated chart version, new persistentVolumeRules
  • Loading branch information
ironoa authored Jan 17, 2021
2 parents 6ff658f + c0a7450 commit 30b74a7
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: 2
jobs:
buildImage:
docker:
- image: web3f/ci-commons:v2.4.0
- image: web3f/ci-commons:v2.4.4
steps:
- checkout
- setup_remote_docker
Expand All @@ -13,7 +13,7 @@ jobs:
publishChart:
docker:
- image: web3f/ci-commons:v2.4.0
- image: web3f/ci-commons:v2.4.4
steps:
- checkout
- run:
Expand Down
2 changes: 1 addition & 1 deletion charts/polkadot-base-services/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
description: Base services for Polkadot Node chart.
name: polkadot-base-services
version: v0.34.0
version: v0.34.1
apiVersion: v2
5 changes: 5 additions & 0 deletions charts/polkadot-base-services/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ p2p.{{ .Values.domain }}
grafana.{{ .Values.domain }}
{{- end }}

{{/* Returns the grafana service name */}}
{{- define "polkadot-deployer.grafanaService" -}}
grafana
{{- end }}

{{/* Returns the external boot node service name */}}
{{- define "polkadot-deployer.externalBootNodeService" -}}
{{ .Release.Name }}-external-bootnode
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ spec:
paths:
- path: /
backend:
serviceName: grafana
serviceName: {{ include "polkadot-deployer.grafanaService" . }}
servicePort: 80
{{ end }}
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,23 @@ spec:
100 * kubelet_volume_stats_available_bytes{job="kubelet"}
/
kubelet_volume_stats_capacity_bytes{job="kubelet"}
< 3
< 10
for: 1m
labels:
severity: critical
origin: {{ .Values.deploymentName }}
- alert: KubePersistentVolumeFullInEightDays
- alert: KubePersistentVolumeFillingUp
annotations:
message: Based on recent sampling, the PersistentVolume claimed by {{`{{ $labels.persistentvolumeclaim
}}`}} in Namespace {{`{{ $labels.namespace }}`}} is expected to fill up within four
days. Currently {{`{{ $value }}`}} bytes are available.
runbook_url: https://github.com/kubernetes-monitoring/kubernetes-mixin/tree/master/runbook.md#alert-name-kubepersistentvolumefullinfourdays
runbook_url: https://github.com/kubernetes-monitoring/kubernetes-mixin/blob/master/runbook.md#alert-name-kubepersistentvolumefillingup-1
expr: |
kubelet_volume_stats_available_bytes{job="kubelet"} and predict_linear(kubelet_volume_stats_available_bytes{job="kubelet"}[6h], 8 * 24 * 3600) < 0
kubelet_volume_stats_used_bytes{job="kubelet"}
/
kubelet_volume_stats_capacity_bytes{job="kubelet"} > 0.70
and
kubelet_volume_stats_available_bytes{job="kubelet"} and predict_linear(kubelet_volume_stats_available_bytes{job="kubelet"}[6h], 4 * 24 * 3600) < 0
for: 40m
labels:
severity: critical
Expand Down
2 changes: 1 addition & 1 deletion charts/polkadot-secrets/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
description: Polkadot secrets
name: polkadot-secrets
version: v0.34.0
version: v0.34.1
apiVersion: v2
2 changes: 1 addition & 1 deletion charts/polkadot/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
description: Polkadot Node chart.
name: polkadot
version: v0.34.0
version: v0.34.1
apiVersion: v2
4 changes: 2 additions & 2 deletions charts/polkadot/values.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
image:
repo: parity/polkadot
tag: v0.8.23
tag: v0.8.27

initImage:
repo: web3f/polkadot-deployer
Expand Down Expand Up @@ -41,7 +41,7 @@ resources: {}

persistence:
enabled: false
dataSize: 128Gi
dataSize: 200Gi
chainspecSize: 1Gi
accessModes: [ "ReadWriteOnce" ]

Expand Down

0 comments on commit 30b74a7

Please sign in to comment.