mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-05-07 01:17:39 -02:30
Use ansible instead of kargo-cli to deploy k8s
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user