-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
34 lines (26 loc) · 786 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
KIND_CLUSTER_NAME ?= "demo"
NAMESPACE ?= "default"
.PHONY: kind-create-cluster
kind-create-cluster:
kind create cluster --name ${KIND_CLUSTER_NAME}
.PHONY: check-api
check-api:
kubectl api-resources | grep 'validatingadmission'
.PHONY: example-1
example-1:
kubectl -n ${NAMESPACE} apply --recursive -f ./example-1
.PHONY: example-2
example-2:
kubectl -n ${NAMESPACE} apply --recursive -f ./example-2-workloads
.PHONY: example-3
example-3:
kubectl -n ${NAMESPACE} apply --recursive -f ./example-3-configmap
.PHONY: apply-deployment
apply-deployment:
kubectl apply -f ./deployment.yaml -n ${NAMESPACE}
.PHONY: apply-pod
apply-pod:
kubectl apply -f ./pod.yaml -n ${NAMESPACE}
.PHONY: kind-delete-cluster
kind-delete-cluster:
kind delete cluster --name ${KIND_CLUSTER_NAME}