blob: 8121e319a355af7eaf7c32f3d3a6c633d8d816a7 (
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
36
37
|
#!/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=kubernetes/conf/password_root.txt -n moon
kubectl create secret generic mysql-pass --from-file=kubernetes/conf/password_moon.txt -n moon
kubectl create -n moon -f kubernetes/templates/consul.yaml
kubectl create -n moon -f kubernetes/templates/db.yaml
kubectl create -n moon -f kubernetes/templates/keystone.yaml
echo =========================================
kubectl get pods -n moon
echo =========================================
sleep 10
kubectl create -n moon -f kubernetes/templates/moon_configuration.yaml
echo Waiting for jobs moonforming
sleep 5
kubectl get jobs -n moon
kubectl logs -n moon jobs/moonforming
sleep 5
kubectl create -n moon -f kubernetes/templates/moon_manager.yaml
sleep 2
kubectl create -n moon -f kubernetes/templates/moon_orchestrator.yaml
kubectl create -n moon -f kubernetes/templates/moon_gui.yaml
|