This commit is contained in:
2024-04-08 09:40:36 +02:00
commit f29f47ba64
82 changed files with 61981 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
######################################
# Prepare Hetzner NAT-Gateway #
######################################
---
- hosts: controller, worker, nat, local
gather_facts: false
tasks:
- name: Generate ssh key pair local
when: inventory_hostname in groups ['local']
import_tasks: ../tasks/hetzner_nat/generate_ssh_key.yml
- name: Configuration of NAT-Server
when: inventory_hostname in groups ['nat']
import_tasks: ../tasks/hetzner_nat/configuration_nat.yml
- name: Configuration of Client-Server (controller and worker)
when: inventory_hostname in groups ['controller'] or inventory_hostname in groups ['worker']
import_tasks: ../tasks/hetzner_nat/configuration_client.yml
+48
View File
@@ -0,0 +1,48 @@
######################################
# Prepare Linux and install k8s #
######################################
---
- hosts: controller, worker , proxmox
gather_facts: false
tasks:
- name: Read global default values
include_vars:
file: ../vars/default.yml
- name: Read cluster default values
include_vars:
file: ../vars/k8s_cluster/cluster_vars.yml
- name: base install block
when: inventory_hostname in (groups['controller'] + groups['worker'])
block:
- name: Prepare Debian System
import_tasks: ../tasks/k8s_cluster/system/prepare_debian_system.yml
- name: Setup k8s Cluster
import_tasks: ../tasks/k8s_cluster/kubernetes/setupK8sCluster.yml
- name : Install linkerd Service Mesh
import_tasks: ../tasks/k8s_cluster/serviceMesh/installLinkerd.yml
- name: Setup Storage
import_tasks: ../tasks/k8s_cluster/storage/setupStorage.yml
- name: base install block
when: inventory_hostname in groups['controller']
block:
- name: install Helm3
import_tasks: ../tasks/k8s_cluster/helm/install_helm3.yml
- name: base install block controller_init
when: inventory_hostname in groups['controller_init']
block:
- name: Install MetalLB
import_tasks: ../tasks/k8s_cluster/loadbalancer/install_metallb.yml
- name: install nginx ingress
import_tasks: ../tasks/k8s_cluster/ingress/install_nginx_ingress.yml
- name: Install cert-manager
import_tasks: ../tasks/k8s_cluster/cert_manager/install_cert_manager.yml