oncall-engine/helm
Juris Pavļučenkovs 327b7121ac
Helm: define engine update strategy in values.yaml (#985)
# What this PR does

Now it is possible to change engine deployment update strategy in
values.yaml.
## Which issue(s) this PR fixes

This is due to #334 and #316, as with rolling update, race conditions
might happen when there is still an old engine pod running.

Co-authored-by: Joey Orlando <joey.orlando@grafana.com>
2022-12-20 13:59:19 +01:00
..
oncall Helm: define engine update strategy in values.yaml (#985) 2022-12-20 13:59:19 +01:00
cr.yaml Release helm chart from grafana/oncall to grafana/helm-charts using common workflow 2022-06-21 13:13:42 +03:00
ct.yaml Remove trailing slash 2022-06-21 15:03:42 +03:00
kind.yml Add new ci pipeline: helm chart end to end testing (#855) 2022-11-21 16:10:25 +01:00
README.md add precommit rules for markdown/json files (#915) 2022-12-01 14:26:54 +01:00
simple.yml Add new ci pipeline: helm chart end to end testing (#855) 2022-11-21 16:10:25 +01:00
values-arm64.yml Add new ci pipeline: helm chart end to end testing (#855) 2022-11-21 16:10:25 +01:00
values-local-image.yml Add new ci pipeline: helm chart end to end testing (#855) 2022-11-21 16:10:25 +01:00

How to run the chart locally

  1. Create the cluster with kind

    Make sure ports 30001 and 30002 are free on your machine

    kind create cluster --image kindest/node:v1.24.7 --config kind.yml
    
  2. Install the helm chart

    helm install helm-testing \
    ../oncall --wait --timeout 30m \
    --wait-for-jobs \
    --values ci/simple.yml \
    --values ci/values-arm64.yml
    
  3. Get credentials

    echo "\n\nOpen Grafana on localhost:30002 with credentials - user: admin, password: $(kubectl get secret --namespace default helm-testing-grafana -o jsonpath="{.data.admin-password}" | base64 --decode ; echo)"
    echo "Open Plugins -> Grafana OnCall -> fill form: backend url: localhost:30001, grafana url: localhost: 30001, token below"
    export POD_NAME=$(kubectl get pods --namespace default -l "app.kubernetes.io/name=oncall,app.kubernetes.io/instance=helm-testing,app.kubernetes.io/component=engine" -o jsonpath="{.items[0].metadata.name}")
    
  4. Clean up

    kind delete cluster