-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (34 loc) · 968 Bytes
/
Makefile
File metadata and controls
44 lines (34 loc) · 968 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
.SHELLFLAGS = -ec
plan:
terraform init && terraform plan -refresh=true -out eks.deploy
apply:
terraform apply eks.deploy
destroy:
terraform destroy
kubeconfig:
terraform output kubeconfig > kubeconfig
export KUBECONFIG=$(PWD)/kubeconfig
config-map-aws-auth:
terraform output config-map-aws-auth > config-map-aws-auth.yaml
kubectl apply -f config-map-aws-auth.yaml
sleep 30
kubectl wait --for=condition=Ready nodes --all --timeout=360s
private-key:
terraform output eks_rsa > eks_rsa
.PHONY: \
plan \
apply \
destroy \
kubeconfig \
config-map-aws-auth \
private-key
istio-init-demo:
istioctl manifest apply --set profile=demo
kubectl -n istio-system get svc
kubectl -n istio-system get pods
istio-finalize-demo:
istioctl manifest generate --set profile=demo | kubectl delete -f -
kubectl delete ns bookinfo || true
kubectl delete ns istio-system || true
kubectl -n istio-system get svc || true
kubectl -n istio-system get pods || true