blob: 9900f1ec8abd021477898183914e2d508dc35907 (
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
|
#!/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 =========================================
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
kubectl create -n moon -f kubernetes/templates/moon_manager.yaml
kubectl create -n moon -f kubernetes/templates/moon_orchestrator.yaml
kubectl create -n moon -f kubernetes/templates/moon_gui.yaml
|