-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathrancher-do.sh
32 lines (20 loc) · 1.67 KB
/
rancher-do.sh
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
open "https://$IP"
TOKEN=[...]
curl https://raw.githubusercontent.com/kubernetes-incubator/external-storage/master/digitalocean/manifests/digitalocean-secret.yaml \
| sed -e "s@<DigitalOcean token>@$TOKEN@g" \
| kubectl apply -f -
kubectl apply -f https://raw.githubusercontent.com/kubernetes-incubator/external-storage/master/digitalocean/manifests/rbac/clusterrole.yaml
kubectl apply -f https://raw.githubusercontent.com/kubernetes-incubator/external-storage/master/digitalocean/manifests/rbac/clusterrolebinding.yaml
kubectl apply -f https://raw.githubusercontent.com/kubernetes-incubator/external-storage/master/digitalocean/manifests/rbac/role.yaml
kubectl apply -f https://raw.githubusercontent.com/kubernetes-incubator/external-storage/master/digitalocean/manifests/rbac/rolebinding.yaml
kubectl apply -f https://raw.githubusercontent.com/kubernetes-incubator/external-storage/master/digitalocean/manifests/rbac/serviceaccount.yaml
kubectl apply -f https://raw.githubusercontent.com/kubernetes-incubator/external-storage/master/digitalocean/manifests/digitalocean-provisioner.yaml
curl https://raw.githubusercontent.com/kubernetes-incubator/external-storage/master/digitalocean/manifests/digitalocean-flexplugin-deploy.yaml \
| sed -e "s@<flex volume plugin dir, default: /usr/libexec/kubernetes/kubelet-plugins/volume/exec/>@/usr/libexec/kubernetes/kubelet-plugins/volume/exec/@g" \
| kubectl apply -f -
curl https://raw.githubusercontent.com/kubernetes-incubator/external-storage/master/digitalocean/manifests/sc.yaml \
| sed -e "s@<digitalocean zone: ex fra1>@nyc1@g" \
| kubectl apply -f -
#######################
# Destroy the cluster #
#######################