make-deploy/k8s.mk

21 lines
444 B
Makefile
Raw Normal View History

2022-11-18 14:25:23 +00:00
# k8s
#
# deploys k8s
2022-12-20 14:26:27 +00:00
MANDATORY-k8s = K8S_CONTEXT
2022-11-18 14:25:23 +00:00
start-k8s:
@- echo "\n### starting deployment with k8s"
@- echo "\n### setting kubernetes context to $(K8S_CONTEXT)"
2022-12-21 10:27:58 +00:00
@ kubectl config use-context $(K8S_CONTEXT)
2022-11-18 14:25:23 +00:00
@- echo "\n### generating imagePullSecrets"
@- imagePullSecrets.sh
@- echo "\n### run kubectl apply -f kubernetes.yaml and secrets.yaml"
2022-12-21 10:27:58 +00:00
@ cat kubernetes.yaml secrets.yaml | envsubst | kubectl apply -f -
2022-11-18 14:25:23 +00:00
pull-k8s:
# nop