make-deploy/k8s.mk

18 lines
398 B
Makefile

# k8s
#
# deploys k8s
MANDATORY = $(shell printenv MANDATORY) K8S_CONTEXT
start-k8s:
@- echo "\n### starting deployment with k8s"
@- echo "\n### setting kubernetes context to $(K8S_CONTEXT)"
@ kubectl config use-context $(K8S_CONTEXT)
@- echo "\n### run kubectl apply -f kubernetes.yaml and secrets.yaml"
@ cat kubernetes.yaml secrets.yaml | envsubst | kubectl apply -f -
pull-k8s:
# nop