add kubernetes provisioning
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
---
|
||||
all:
|
||||
children:
|
||||
k8s_cluster:
|
||||
children:
|
||||
control_plane:
|
||||
hosts:
|
||||
controlplane:
|
||||
ansible_host: 10.203.146.138
|
||||
workers:
|
||||
hosts:
|
||||
node01:
|
||||
ansible_host: 10.203.146.17
|
||||
node02:
|
||||
ansible_host: 10.203.146.203
|
||||
node03:
|
||||
ansible_host: 10.203.146.70
|
||||
vars:
|
||||
ansible_user: ubuntu
|
||||
ansible_become: yes
|
||||
ansible_ssh_private_key_file: ~/.ssh/id_rsa
|
||||
ansible_ssh_common_args: '-o StrictHostKeyChecking=no'
|
||||
Regular → Executable
@@ -95,7 +95,7 @@ echo "Verifying inventory file contents:"
|
||||
cat "$INVENTORY_FILE"
|
||||
|
||||
echo "Running Ansible playbook for Kubernetes deployment..."
|
||||
ansible-playbook -i "$INVENTORY_FILE" kubernetes/main.yml
|
||||
ansible-playbook -i "$INVENTORY_FILE" ansible/playbooks/kubernetes.yml
|
||||
|
||||
echo "Kubernetes environment setup complete."
|
||||
echo "Control Plane: $CP_IP"
|
||||
|
||||
Reference in New Issue
Block a user