You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
John Win
a12c7e37d1
|
2 years ago | |
---|---|---|
.. | ||
overlays | 5 years ago | |
.gitignore | 6 years ago | |
Chart.yaml | 4 years ago | |
README.md | 2 years ago | |
kustomization.yaml | 6 years ago |
README.md
Helm + Kustomize
Sometimes Helm chart don't have all required parameters and additional customization is required. This example application demonstrates how to combine Helm and Kustomize and use it as a config management plugin in Argo CD.
Use following steps to try the application:
- configure
kustomized-helm
tool inargocd-cm
ConfigMap:
configManagementPlugins: |
- name: kustomized-helm
init:
command: ["/bin/sh", "-c"]
args: ["helm dependency build"]
generate:
command: ["/bin/sh", "-c"]
args: ["helm template . --name-template $ARGOCD_APP_NAME --namespace $ARGOCD_APP_NAMESPACE --kube-version $KUBE_VERSION > all.yaml && kustomize build"]
Notes:
$ARGOCD_APP_NAME
,$ARGOCD_APP_NAMESPACE
and$KUBE_VERSION
are environment variables that exists in the context of the plugin.- setting
--kube-version
is important as helm template can mock up data which may not match the actual cluster version.
- create application using
kustomized-helm
as a config management plugin name:
argocd app create kustomized-helm \
--config-management-plugin kustomized-helm \
--repo https://github.com/argoproj/argocd-example-apps \
--path plugins/kustomized-helm \
--dest-server https://kubernetes.default.svc \
--dest-namespace default