2022-12-21 09:57:47 +00:00
|
|
|
MANDATORY-helm = K8S_CONTEXT
|
2022-11-03 08:48:22 +00:00
|
|
|
# helm
|
|
|
|
#
|
|
|
|
# deploys helm charts on k8s via helmfile
|
2022-12-08 09:34:34 +00:00
|
|
|
#
|
2022-11-03 08:48:22 +00:00
|
|
|
start-helm:
|
|
|
|
@- echo "\n### starting deployment with helmfile"
|
|
|
|
@- echo "\n### setting kubernetes context to $(K8S_CONTEXT)"
|
2022-12-07 13:55:36 +00:00
|
|
|
@ kubectl config use-context $(K8S_CONTEXT)
|
2022-12-08 09:34:34 +00:00
|
|
|
#
|
2022-11-15 14:23:56 +00:00
|
|
|
@- echo "\n### create namespace $(NAMESPACE)"
|
|
|
|
@- kubectl create namespace "$(NAMESPACE)" --dry-run=client -o yaml | kubectl apply -f -
|
2022-12-08 09:34:34 +00:00
|
|
|
#
|
2022-12-07 12:41:36 +00:00
|
|
|
@- echo "\n### run kubectl apply -f secrets.yaml"
|
2022-12-08 09:34:34 +00:00
|
|
|
@- kubectl apply -f secrets.yaml -o yaml
|
|
|
|
#
|
2022-11-03 08:48:22 +00:00
|
|
|
@- echo "\n### deploying helm chart"
|
2022-12-07 13:55:36 +00:00
|
|
|
@ helmfile --file helmfile.yaml apply --suppress-secrets
|
2022-12-08 09:34:34 +00:00
|
|
|
#
|
2022-11-03 08:48:22 +00:00
|
|
|
pull-helm:
|
2022-11-15 14:23:56 +00:00
|
|
|
# nop
|