init commit kubernetes

This commit is contained in:
Stefan Riepenhausen 2022-11-18 15:25:23 +01:00
parent a401b251c1
commit 85ccc9bad5
1 changed files with 18 additions and 0 deletions

18
k8s.mk
View File

@ -0,0 +1,18 @@
# k8s
#
# deploys k8s
start-k8s:
@- echo "\n### starting deployment with k8s"
@- echo "\n### setting kubernetes context to $(K8S_CONTEXT)"
@- kubectl config use-context $(K8S_CONTEXT)
@- echo "\n### generating imagePullSecrets"
@- imagePullSecrets.sh
@- echo "\n### run kubectl apply -f kubernetes.yaml and secrets.yaml"
@- cat kubernetes.yaml secrets.yaml | kubectl apply -f -
pull-k8s:
# nop