-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstart.sh
23 lines (23 loc) · 1.49 KB
/
start.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
kind create cluster --name kind-1 --config k8s/kind/cluster-config.yaml
kind load docker-image cc-frontend --name kind-1
kind load docker-image cc-user --name kind-1
kind load docker-image cc-matching --name kind-1
kind load docker-image cc-collaboration --name kind-1
kind load docker-image cc-question --name kind-1
kind load docker-image cc-history --name kind-1
kind load docker-image cc-communication --name kind-1
kubectl create secret generic user-svc-secrets --from-env-file ./user-service/.env.test
kubectl create secret generic history-svc-secrets --from-env-file ./history-service/.env.test
kubectl apply -f k8s/manifests/redis-matching-deployment.yaml
kubectl apply -f k8s/manifests/redis-collab-deployment.yaml
kubectl apply -f k8s/manifests/user-deployment.yaml
kubectl apply -f k8s/manifests/question-deployment.yaml
kubectl apply -f k8s/manifests/history-deployment.yaml
kubectl apply -f k8s/manifests/communication-deployment.yaml
kubectl apply -f k8s/manifests/collaboration-deployment.yaml
kubectl apply -f k8s/manifests/matching-deployment.yaml
kubectl apply -f k8s/manifests/frontend-deployment.yaml
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/main/deploy/static/provider/kind/deploy.yaml
kubectl wait --namespace ingress-nginx --for=condition=ready pod --selector=app.kubernetes.io/component=controller --timeout=120s
kubectl wait --namespace ingress-nginx --for=condition=complete job/ingress-nginx-admission-patch --timeout=30s
kubectl apply -f k8s/manifests/ingress.yaml