blob: 3892a3fab001ddbaf7f438bc2fda342fb61eef3e (
plain)
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
|
#!/usr/bin/env bash
set -x
kubectl create namespace moon
kubectl create configmap moon-config --from-file conf/moon.conf -n moon
kubectl create configmap config --from-file ~/.kube/config -n moon
kubectl create secret generic mysql-root-pass --from-file=conf/password_root.txt -n moon
kubectl create secret generic mysql-pass --from-file=conf/password_moon.txt -n moon
kubectl create -n moon -f templates/consul.yaml
kubectl create -n moon -f templates/db.yaml
kubectl create -n moon -f templates/keystone.yaml
echo =========================================
kubectl get pods -n moon
echo =========================================
sleep 10
kubectl create -n moon -f templates/moon_forming.yaml
echo Waiting for jobs forming
sleep 5
kubectl get jobs -n moon
kubectl logs -n moon jobs/forming
sleep 5
kubectl create -n moon -f templates/moon_manager.yaml
sleep 2
kubectl create -n moon -f templates/moon_orchestrator.yaml
kubectl create -n moon -f templates/moon_gui.yaml
|