Refactor to use new deploy config in ccp
This commit is contained in:
parent
5b4c365b8c
commit
a153ac231a
2 changed files with 5 additions and 1 deletions
|
@ -23,11 +23,13 @@ create_network_conf() {
|
|||
}
|
||||
|
||||
assign_node_roles() {
|
||||
all_label='openstack-compute-controller=true'
|
||||
for i in "${!nodes[@]}"
|
||||
do
|
||||
node=$i
|
||||
label=${nodes[$i]}
|
||||
kubectl get nodes $node --show-labels | grep -q "$label" || kubectl label nodes $node $label
|
||||
kubectl get nodes $node --show-labels | grep -q "$all_label" || kubectl label nodes $node $all_label
|
||||
done
|
||||
}
|
||||
|
||||
|
@ -38,7 +40,7 @@ delete_namespace() {
|
|||
}
|
||||
|
||||
deploy_microservices() {
|
||||
mcp-microservices --config-file=/root/mcp.conf deploy -t /root/cluster-topology.yaml &> /var/log/mcp-deploy.log
|
||||
mcp-microservices --config-file=/root/mcp.conf --deploy-config=mcp-deploy-config.yaml deploy &> /var/log/mcp-deploy.log
|
||||
}
|
||||
|
||||
create_network_conf
|
||||
|
|
2
mcp-deploy-config.yaml
Normal file
2
mcp-deploy-config.yaml
Normal file
|
@ -0,0 +1,2 @@
|
|||
configs:
|
||||
neutron_external_interface: eth1
|
Loading…
Reference in a new issue