mongodb community operator deployment

This commit is contained in:
2024-04-15 14:57:02 +02:00
parent b71e9c7c39
commit 2f93c94236
8 changed files with 250 additions and 39 deletions
+39 -36
View File
@@ -6,43 +6,46 @@
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: 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 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
- 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
- name: Install mongodb
import_tasks: ../tasks/k8s_cluster/mongodb/install_mongodb.yml