-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
29 lines (23 loc) · 732 Bytes
/
makefile
File metadata and controls
29 lines (23 loc) · 732 Bytes
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
# Define variables
KIND_CLUSTER_NAME := kind-test
KIND_CONFIG := kind.yaml
NAMESPACE := ingress-nginx
# Create Kind Cluster
create-cluster:
kind create cluster --name $(KIND_CLUSTER_NAME) --config $(KIND_CONFIG)
# Delete Kind Cluster
delete-cluster:
kind delete cluster --name $(KIND_CLUSTER_NAME)
# Install nginx ingress controller
install-ingress:
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/main/deploy/static/provider/kind/deploy.yaml
# Check pod status
check-pods:
kubectl get pods -n $(NAMESPACE)
# Clean up
destroy:
make delete-cluster
# Show nodes in the cluster
show-nodes:
kubectl get nodes
.PHONY: create-cluster delete-cluster install-ingress check-pods destroy show-nodes