forked from SeldonIO/seldon-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kubernetes-notes.txt
40 lines (27 loc) · 913 Bytes
/
kubernetes-notes.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
#seldon
cd /seldon-server/kubernetes/conf
make clean conf SELDON_SERVICE_TYPE=LoadBalance
#List Services:
kubectl cluster-info
#Check config/pwd:
kubectl config view
kubectl config set-cluster local --server=http://localhost:8080
kubectl config set-context local --cluster=local
kubectl config use-context local
kubectl config current-context
kubectl config set-cluster local --server=http://localhost:8080
kubectl config set-context local --cluster=local
kubectl config use-context local #aws_kubernetes
kubectl get nodes
kubectl run ttnd-nginx --image=nginx
kubectl get pods
export KUBERNETES_PROVIDER=aws
./kubernetes/cluster/kube-down.sh
./kubernetes/cluster/kube-up.sh
#aws login password: cat ~/.kube/config
kubectl get services
kubectl get deployments
kubectl logs ahalife
kubectl exec -ti seldon-control -- /bin/bash
docker images
kubectl create -f seldon-server/kubernetes/conf/server.json