use envsubst
This commit is contained in:
parent
1cae995639
commit
27f1575a20
4
k8s.mk
4
k8s.mk
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue