make-deploy/helm.mk

26 lines
725 B
Makefile

# helm
#
# deploys helm charts on k8s via helmfile
#
start-helm:
@- echo "\n### starting deployment with helmfile"
@- echo "\n### setting kubernetes context to $(K8S_CONTEXT)"
@ kubectl config use-context $(K8S_CONTEXT)
#
@ echo "kubectl version"
@- kubectl version
#
@- echo "\n### create namespace $(NAMESPACE)"
@- kubectl create namespace "$(NAMESPACE)" --dry-run=client -o yaml | kubectl apply -f -
@- echo "\n### DEBUG NAMESPACE"
@- kubectl create namespace "$(NAMESPACE)" --dry-run=client -o yaml
#
@- echo "\n### run kubectl apply -f secrets.yaml"
@- kubectl apply -f secrets.yaml -o yaml
#
@- echo "\n### deploying helm chart"
@ helmfile --file helmfile.yaml apply --suppress-secrets
#
pull-helm:
# nop