generated from katanaml/katana-skipper
-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
kubectl-setup.sh
executable file
·119 lines (64 loc) · 2.82 KB
/
kubectl-setup.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
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
# RabbitMQ namespace and service
{
kubectl create ns rabbits
} || {
echo 'rabbits namespace is already defined'
}
kubectl apply -n rabbits -f rabbitmq/rabbit-rbac.yaml
kubectl apply -n rabbits -f rabbitmq/rabbit-secret.yaml
kubectl apply -n rabbits -f rabbitmq/rabbit-configmap.yaml
kubectl apply -n rabbits -f rabbitmq/rabbit-statefulset.yaml
kubectl rollout status -n rabbits statefulset.apps/rabbitmq
kubectl get -n rabbits pods
kubectl get -n rabbits svc
kubectl get -n rabbits pvc
# Skipper engine namespace
{
kubectl create ns katana-skipper
} || {
echo 'katana-skipper namespace is already defined'
}
# Skipper Logger
kubectl apply -n katana-skipper -f logger/logger-pod.yaml
kubectl rollout status -n katana-skipper deploy/skipper-logger
kubectl get -n katana-skipper pods
kubectl get -n katana-skipper svc skipper-logger
kubectl get -n katana-skipper deployments
# Skipper workflow
kubectl apply -n katana-skipper -f workflow/workflow-pod.yaml
kubectl rollout status -n katana-skipper deploy/skipper-workflow
kubectl get -n katana-skipper pods
kubectl get -n katana-skipper svc skipper-workflow
kubectl get -n katana-skipper deployments
# Skipper API
kubectl apply -n katana-skipper -f api/api-pod.yaml
kubectl rollout status -n katana-skipper deploy/skipper-api
kubectl get -n katana-skipper pods
kubectl get -n katana-skipper svc skipper-api
kubectl get -n katana-skipper deployments
# Skipper API Celery
kubectl apply -n katana-skipper -f api/api-celery-pod.yaml
kubectl rollout status -n katana-skipper deploy/skipper-api-celery
kubectl get -n katana-skipper pods
kubectl get -n katana-skipper deployments
# Skipper API Ingress
kubectl apply -n katana-skipper -f api/api-ingress.yaml
# Training service and Data processing sidecar running in single Pod
kubectl apply -f services/trainingservice/trainingservice-pv.yaml
kubectl apply -n katana-skipper -f services/trainingservice/trainingservice-pvc.yaml
kubectl apply -n katana-skipper -f services/trainingservice/trainingservice-pod.yaml
kubectl rollout status -n katana-skipper deploy/training-service
kubectl get -n katana-skipper pods
kubectl get -n katana-skipper deployments
# Serving service and Storage sidecar running in single Pod
kubectl apply -f services/servingservice/servingservice-pv.yaml
kubectl apply -n katana-skipper -f services/servingservice/servingservice-pvc.yaml
kubectl apply -n katana-skipper -f services/servingservice/servingservice-pod.yaml
kubectl rollout status -n katana-skipper deploy/serving-service
kubectl get -n katana-skipper pods
kubectl get -n katana-skipper deployments
# MobileNet service
kubectl apply -n katana-skipper -f services/mobilenetservice/mobilenetservice-pod.yaml
kubectl rollout status -n katana-skipper deploy/mobilenet-service
kubectl get -n katana-skipper pods
kubectl get -n katana-skipper deployments