-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy-local-dev.sh
executable file
·41 lines (27 loc) · 1.33 KB
/
deploy-local-dev.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
#!/bin/sh
#
# You can use this script to launch Redis and minio on Kubernetes
# and forward their connections to your local computer. That means
# you can then work on your worker-server.py and rest-server.py
# on your local computer rather than pushing to Kubernetes with each change.
#
# To kill the port-forward processes us e.g. "ps augxww | grep port-forward"
# to identify the processes ids
#
helm install -f ./minio/minio-config.yaml -n minio-ns --create-namespace minio-proj bitnami/minio
kubectl apply -f minio/minio-external-service.yaml
# kubectl apply -f minio/minio-example-dep.yaml
kubectl apply -f redis/redis-deployment.yaml
# kubectl apply -f redis/redis-service.yaml
# kubectl port-forward svc/redis 6379:6379 &
kubectl apply -f rest/rest-deployment.yaml
# kubectl apply -f rest/rest-service.yaml
kubectl apply -f rest/rest-ingress.yaml
kubectl apply -f logs/logs-deployment.yaml
kubectl apply -f worker/worker-deployment.yaml
# kubectl port-forward --address 0.0.0.0 service/redis 6379:6379 &
# If you're using minio from the kubernetes tutorial this will forward those
# kubectl port-forward -n minio-ns --address 0.0.0.0 service/minio-proj 9000:9000 &
# sleep 10
# kubectl port-forward --address 0.0.0.0 service/rest-server-service 5000:5000 &
# kubectl port-forward -n minio-ns --address 0.0.0.0 service/minio-proj 9001:9001 &