forked from hechuan73/train_ticket
-
Notifications
You must be signed in to change notification settings - Fork 0
/
k8s-deployment.txt
39 lines (27 loc) · 1.06 KB
/
k8s-deployment.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
steps:
1. databases:
kubectl create -f ts-deployment-part1.yml
kubectl create -f ts-service-part1.yml
kubectl get pods
2. microserivces:
kubectl create -f ts-deployment-part2-1.yml
kubectl create -f ts-deployment-part2-2.yml
kubectl create -f ts-service-part2-1.yml
kubectl create -f ts-service-part2-2.yml
3. ui:
kubectl create -f ts-deployment-part3.yml
kubectl create -f ts-service-part3.yml
4. delete services:
kubectl delete -f ./ts-service-part3.yml
delete deployments:
kubectl delete -f ./ts-service-part3.yml
kubectl delete -f ./ts-deployment-part3.yml
kubectl delete -f ./ts-service-part2-2.yml
kubectl delete -f ./ts-deployment-part2-2.yml
kubectl delete -f ./ts-service-part2-1.yml
kubectl delete -f ./ts-deployment-part2-1.yml
kubectl delete -f ./ts-service-part1.yml
kubectl delete -f ./ts-deployment-part1.yml
5. logs
kubectl logs ts-sso-service-896060255-wr736
kubectl describe service ts-ui-dashboard