-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmakefile
More file actions
105 lines (87 loc) · 4.72 KB
/
Copy pathmakefile
File metadata and controls
105 lines (87 loc) · 4.72 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
RM=/bin/rm -f
RMD=/bin/rm -Rf
ISTIO_VERSION=1.0.3
.install-autoscale-hpa:
# git clone https://github.com/kubernetes-incubator/metrics-server
kubectl apply -f metrics-server/deploy/1.8+/
# replace cluster name and aws region from following yaml
kubectl apply -f autoscaler/cluster-autoscaler-autodiscover.yaml
.install-argo-ci:
helm repo add argo https://argoproj.github.io/argo-helm/
helm install argo/argo-ci --name argo-ci
.delete-argo-ci:
helm del --purge argo-ci
.install-argo-cd:
kubectl create namespace argocd
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/v0.7.1/manifests/install.yaml
sudo curl -L -o /usr/local/bin/argocd https://github.com/argoproj/argo-cd/releases/download/v0.7.1/argocd-linux-amd64
sudo chmod +x /usr/local/bin/argocd
.delete-argo-cd:
-kubectl delete -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/v0.7.1/manifests/install.yaml
-kubectl delete namespace argocd
-sudo $(RM) /usr/local/bin/argocd
.install-kubernetes-dashboard:
kubectl apply -f dashboard/kubernetes-dashboard.yaml
.delete-kubernetes-dashboard:
kubectl delete -f dashboard/kubernetes-dashboard.yaml
.install-istio-helm-tiller:
#-${RMD} istio-$(ISTIO_VERSION)
#curl -L https://git.io/getLatestIstio | ISTIO_VERSION=(ISTIO_VERSION) sh
#cp istio-$(ISTIO_VERSION)/bin/istioctl ~/.local/bin
-kubectl create namespace istio-system
#helm install istio-$(ISTIO_VERSION)/install/kubernetes/helm/istio --debug --timeout 600 --wait --name istio --namespace istio-system --set grafana.enabled=true --set servicegraph.enabled=true --set prometheus.enabled=true --set tracing.enabled=true --set global.configValidation=true --set sidecarInjectorWebhook.enabled=true --set gateways.istio-ingressgateway.serviceAnnotations[0].service\.beta\.kubernetes\.io/aws-load-balancer-type=nlb
helm install istio-$(ISTIO_VERSION)/install/kubernetes/helm/istio --debug --timeout 600 --wait --name istio --namespace istio-system --set grafana.enabled=true --set servicegraph.enabled=true --set prometheus.enabled=true --set tracing.enabled=true --set global.configValidation=true --set sidecarInjectorWebhook.enabled=true
.install-istio-helm-template:
-${RMD} istio-$(ISTIO_VERSION)
curl -L https://git.io/getLatestIstio | ISTIO_VERSION=$(ISTIO_VERSION) sh
cp istio-$(ISTIO_VERSION)/bin/istioctl ~/.local/bin
cp istio-$(ISTIO_VERSION)/bin/istioctl ~/.local/bin
kubectl create namespace istio-system
helm template istio-$(ISTIO_VERSION)/install/kubernetes/helm/istio --name istio --namespace istio-system --set grafana.enabled=true --set servicegraph.enabled=true --set prometheus.enabled=true --set tracing.enabled=true > istio-$(ISTIO_VERSION)/istio.yaml
kubectl create -f istio-$(ISTIO_VERSION)/istio.yaml
.delete-istio-helm-tiller:
-helm del --purge istio
-kubectl -n istio-system delete job --all
-kubectl delete -f istio-$(ISTIO_VERSION)/install/kubernetes/helm/istio/templates/crds.yaml -n istio-system
-kubectl delete namespace istio-system
-${RM} ~/.local/bin/istioctl
.delete-istio-helm-template:
-kubectl delete -f istio-$(ISTIO_VERSION)/istio.yaml
-kubectl -n istio-system delete job --all
-kubectl delete -f istio-$(ISTIO_VERSION)/install/kubernetes/helm/istio/templates/crds.yaml -n istio-system
-kubectl delete namespace istio-system
-${RM} ~/.local/bin/istioctl
.install-helm-bin:
curl -L https://storage.googleapis.com/kubernetes-helm/helm-v2.10.0-rc.2-linux-amd64.tar.gz | tar -xzv
sudo cp linux-amd64/helm /usr/local/bin
${RMD} linux-amd64
helm home
.delete-helm-bin:
-sudo ${RM} /usr/local/bin/helm
.helm-install: .install-helm-bin
kubectl -n kube-system create serviceaccount tiller
kubectl create clusterrolebinding tiller --clusterrole cluster-admin --serviceaccount=kube-system:tiller
helm init --service-account=tiller
-helm repo update
.helm-delete:
-helm reset
-${RMD} ~/.helm
-kubectl -n kube-system delete deployment tiller-deploy
-kubectl delete clusterrolebinding tiller
-kubectl -n kube-system delete serviceaccount tiller
-make .delete-helm-bin
-echo 'helm deleted.'
#for ML model deployment with Seldon
.install-s2i: .delete-s2i
mkdir seldon
curl -L https://github.com/openshift/source-to-image/releases/download/v1.1.10/source-to-image-v1.1.10-27f0729d-linux-amd64.tar.gz | tar -xzv -C seldon
sudo cp seldon/s2i /usr/local/bin
$(RMD) seldon
.delete-s2i:
-$(RM) /usr/local/bin/s2i
.install-seldon-core:
helm install seldon-core-crd --name seldon-core-crd --repo https://storage.googleapis.com/seldon-charts --set usage_metrics.enabled=true
helm install seldon-core --name seldon-core --repo https://storage.googleapis.com/seldon-charts --set apife.enabled=true --set rbac.enabled=true --set ambassador.enabled=true
.delete-seldon-core:
helm del --purge seldon-core-crd
helm del --purge seldon-core