-
Notifications
You must be signed in to change notification settings - Fork 3
/
script.txt
50 lines (42 loc) · 1.07 KB
/
script.txt
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
## Provision a vagrant k8s cluster
export NUM_MINIONS=2
export KUBERNETES_PROVIDER=vagrant
curl -sS https://get.k8s.io | bash
cd kubernetes/
ls
cd cluster/
ln -s kubectl.sh kubectl
export PATH=`pwd`:$PATH
kubectl get nodes
kubectl get pods
kubectl get services
## Install and Scale an RC Manifest
cat manifests/ijulia-rc.yaml
kubectl create -f manifests/ijulia-rc.yaml
kubectl describe rc ijulia
kubectl get pods
kubectl describe pod <pod_id>
kubectl logs -f <pod_id>
kubectl exec <pod> -- ls -alh
kubectl scale rc ijulia --replicas=4
kubectl get pods --output=wide
curl http://10.245.1.3:8888
cat manifests/ijulia-svc.yaml
kubectl create -f manifests/ijulia-svc.yaml
kubectl get service
kubectl get service ijulia -o yaml
curl -sS http://10.245.1.3:<port>/tree
# open in browser
# cleanup
kubectl delete svc ijulia
kubectl delete rc ijulia
## Install Deis v2 alpha
helm --version
helm repo add deis https://github.com/deis/charts
helm up
helm fetch deis/deis-dev
helm generate deis-dev
helm install deis-dev
kubectl get pods
kubectl get namespaces
kubectl get pods --namespace=deis