Use ansible instead of kargo-cli to deploy k8s
This commit is contained in:
parent
8acd4396d6
commit
8d80265392
2 changed files with 4 additions and 2 deletions
|
@ -21,6 +21,7 @@ assign_node_roles() {
|
||||||
create_network_conf
|
create_network_conf
|
||||||
assign_node_roles
|
assign_node_roles
|
||||||
|
|
||||||
kubectl delete namespace openstack && sleep 40
|
kubectl delete namespace openstack && sleep 120
|
||||||
|
|
||||||
mcp-microservices --config-file=/root/mcp.conf deploy -t /root/cluster-topology.yaml
|
mcp-microservices --config-file=/root/mcp.conf deploy -t /root/cluster-topology.yaml
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,8 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Running deployment..."
|
echo "Running deployment..."
|
||||||
kargo deploy -y --ansible-opts="-e @custom.yaml"
|
#kargo deploy -y --ansible-opts="-e @custom.yaml"
|
||||||
|
ansible-playbook -i $INVENTORY kargo/cluster.yml -e @custom.yaml
|
||||||
deploy_res=$?
|
deploy_res=$?
|
||||||
|
|
||||||
if [ "$deploy_res" -eq "0" ]; then
|
if [ "$deploy_res" -eq "0" ]; then
|
||||||
|
|
Loading…
Reference in a new issue