Skip to content

Instantly share code, notes, and snippets.

@varunpalekar
Last active July 24, 2018 13:35
Show Gist options
  • Save varunpalekar/1f0d1d4200809bba1c9181d6f03df239 to your computer and use it in GitHub Desktop.
Save varunpalekar/1f0d1d4200809bba1c9181d6f03df239 to your computer and use it in GitHub Desktop.
Kubernetes and helm
1. install in current dir
`helm install --namespace=gm-integration -f values-integration.yaml .`
2. Upgrade
`helm upgrade "gm" -i --namespace=gm-integration -f values-integration.yaml .`
3. Delete purge
`helm delete --purge "name".`
  1. Get the first element of arrary

{{- $zookeeper_first := index $config.zookeeper_servers 0 -}}

  1. Convert to Json

{{ toJson $config.nimbus_seeds }}

  1. Parsing array of dict with detecting , for last elemet
{{ range $index, $element := $config.bootstrap_servers -}}
  {{- if $index -}},{{- end -}}
    {{- $element -}}
{{- end }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment