-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
39 lines (32 loc) · 1.26 KB
/
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
35
36
37
38
39
create-eks-cluster:
@eksctl create cluster -f eks-cluster.yaml
bootstrap-eks-flux2:
@flux bootstrap github \
--owner=$(GITHUB_USER) \
--repository=mastering-gitops \
--branch=main \
--path=./clusters/eks-cluster \
--components-extra=image-reflector-controller,image-automation-controller \
--read-write-key \
--personal
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 gke-crossplane-cluster --num-nodes=3 --enable-autoscaling --min-nodes=3 --max-nodes=5 --cluster-version=1.19
@kubectl create clusterrolebinding cluster-admin-binding --clusterrole=cluster-admin --user=$$(gcloud config get-value core/account)
@kubectl cluster-info
bootstrap-gke-flux2:
@flux bootstrap github \
--owner=$(GITHUB_USER) \
--repository=mastering-gitops \
--branch=main \
--path=./clusters/gke-cluster \
--components-extra=image-reflector-controller,image-automation-controller \
--read-write-key \
--personal
delete-clusters: delete-eks-cluster delete-gke-cluster
delete-eks-cluster:
@eksctl delete cluster -f eks-cluster.yaml
delete-gke-cluster:
@gcloud container clusters delete gke-crossplane-cluster --async --quiet