-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJustfile
More file actions
22 lines (18 loc) · 693 Bytes
/
Copy pathJustfile
File metadata and controls
22 lines (18 loc) · 693 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
timeout := "300s"
# Default command - list available commands
default:
@just --list
# Create a new Kind cluster
cluster-create:
kind create cluster --name homelab-cluster --config cluster/kind-cluster.yaml
sleep 10
kubectl get nodes
# Destroy the Kind cluster
cluster-destroy:
kind delete cluster --name homelab-cluster
# Get Grafana admin credentials
grafana-credentials:
@echo "Grafana admin username:"
@kubectl -n monitoring get secret prometheus-grafana -o jsonpath='{.data.admin-user}' | base64 --decode
@echo "\nGrafana admin password:"
@kubectl -n monitoring get secret prometheus-grafana -o jsonpath='{.data.admin-password}' | base64 --decode