-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prepared project to support qcow2 images in addition to lxc
- Loading branch information
Showing
7 changed files
with
91 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
- hosts: proxmox_server | ||
tasks: | ||
- name: Create a resource pool | ||
shell: pvesh create /pools -poolid "{{ k8s_resource_pool }}" --Comment "Kubernetes Cluster" | ||
|
||
- name: Downloading the newest CentOS LXC template | ||
shell: pveam download {{ template_storage }} {{ lxc_template }} | ||
|
||
- name: Provisioning a Kubernetes Master container |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,21 @@ | ||
--- | ||
#Deploy the LXCs to your Proxmox server | ||
############################################################################################### | ||
# -Deploy the Compute Resources- # | ||
############################################################################################### | ||
# Only one of these playbooks should be used at a time. See the README for more information. # | ||
############################################################################################### | ||
- import_playbook: Playbooks/deploy_lxc_containers.yml | ||
#- import_playbook: Playbooks/deploy_qcow2_vms.yml | ||
|
||
#Prepare CentOS for Kubernetes | ||
############################################################################################### | ||
# -Prepare the instances for Kubernetes- # | ||
############################################################################################### | ||
# Upgrade CentOS, install the necessary packages, enable Systemd modules, and reboot the # | ||
# instances. The `privelege_lxc_instances` playbook should only be used if you are deploying # | ||
# containers for your compute resources. See the README for more information. # | ||
############################################################################################### | ||
- import_playbook: Playbooks/install_base_packages.yml | ||
- import_playbook: Playbooks/perform_miscellaneous_tasks.yml | ||
- import_playbook: Playbooks/privelege_lxc_instances.yml | ||
|
||
#Bootstrap Kubernetes | ||
- import_playbook: Playbooks/bootstrap_kubernetes.yml |