use envsubst

This commit is contained in:
Stefan Riepenhausen 2022-12-20 15:26:27 +01:00
parent 1cae995639
commit 27f1575a20
1 changed files with 3 additions and 1 deletions

4
k8s.mk
View File

@ -2,6 +2,8 @@
# #
# deploys k8s # deploys k8s
MANDATORY-k8s = K8S_CONTEXT
start-k8s: start-k8s:
@- echo "\n### starting deployment with k8s" @- echo "\n### starting deployment with k8s"
@- echo "\n### setting kubernetes context to $(K8S_CONTEXT)" @- echo "\n### setting kubernetes context to $(K8S_CONTEXT)"
@ -11,7 +13,7 @@ start-k8s:
@- imagePullSecrets.sh @- imagePullSecrets.sh
@- echo "\n### run kubectl apply -f kubernetes.yaml and secrets.yaml" @- echo "\n### run kubectl apply -f kubernetes.yaml and secrets.yaml"
@- cat kubernetes.yaml secrets.yaml | kubectl apply -f - @- cat kubernetes.yaml secrets.yaml | envsubst | kubectl apply -f -
pull-k8s: pull-k8s:
# nop # nop