-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefile
21 lines (18 loc) · 848 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
prepare-gke-cluster:
@gcloud config set compute/zone europe-west1-b
@gcloud config set container/use_client_certificate False
create-gke-cluster:
@gcloud container clusters create testkube-cluster --num-nodes=3 --enable-autoscaling --min-nodes=3 --max-nodes=5 --machine-type=n2-standard-8 --cluster-version=1.30
@kubectl create clusterrolebinding cluster-admin-binding --clusterrole=cluster-admin --user=$$(gcloud config get-value core/account)
@kubectl cluster-info
bootstrap-flux2:
@flux bootstrap github \
--owner=$(GITHUB_USER) \
--repository=hands-on-testkube \
--branch=main \
--path=./k8s/clusters/testkube-cluster \
--components-extra=image-reflector-controller,image-automation-controller \
--read-write-key \
--personal
delete-gke-cluster:
@gcloud container clusters delete testkube-cluster --async --quiet