Skip to content

Instantly share code, notes, and snippets.

@djfarrelly
Last active July 12, 2019 16:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save djfarrelly/2fa9e419506bba20c36b90a4825d871b to your computer and use it in GitHub Desktop.
Save djfarrelly/2fa9e419506bba20c36b90a4825d871b to your computer and use it in GitHub Desktop.
How to test your helm chart values yaml files locally
#!/bin/bash
# Usage `./local-deploy.sh <command> <service-name>
# Requirements: helm must be installed and match the version on our cluster
# commands:
# deploy Deploys the code to the cluster (requires cluster access)
# dry-run Prints the k8s deployment and service yaml files generates by helm
CMD="$1"
SVC="$2"
# 1. Point helm at our buffer-helm charts repo
# 2. Determine what chart name to use
# 3. Run helm command to deploy (or dry-run) using the selected base helm chart and the path to the values.yaml file
helm upgrade --install <chart> <path-to-values-yaml-file>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment