Jump to content

User:NNikkhoui (WMF)/Helmchart Debug Notes

From Meta, a Wikimedia project coordination wiki

How I debugged local helmcharts (Executed from inside ./local-charts/charts directory )

  • minikube start
  • helm install {any-name} ./image-suggestion-api
  • minikube service image-suggestion-api-{any-name} (Starts up the pod in minikube for browser testing/access!)

After making changes to helmchart and wanting to test again:

  • helm uninstall {any-name}
  • helm install {any-name} ./image-suggestion-api


Other helpful commands:

  • helm install {any-name} ./image-suggestion-api --dry-run --debug (for debugging)
  • helm get manifest {any-name} (prints out helm chart)


Test local docker image (not on wmf registry):

  • Use minikube's docker daemon
    • eval $(minikube docker-env)
  • Build local image with the tag that helm chart looks for
    • blubber .pipeline/blubber.yaml development | docker build --tag docker-registry.wikimedia.org/wikimedia/mediawiki-services-image-suggestion-api --file - .
  • Login to docker container as root
    • docker exec -it -u 0 {container-ID} /bin/bash
  • Restart docker container in pod
    • docker restart {container-ID}