This commit is contained in:
2024-04-08 09:40:36 +02:00
commit f29f47ba64
82 changed files with 61981 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
######################################
# Global vars for Cloud-Cluster #
######################################
# Name of the envrionment where to deploy to
# - 'production' (for production environment)
# - 'staging' (for staging environment)
# - 'development' (for development environment)
# user can expand sub-domains as the wish
# masterDomain: 'example.com'
masterDomain: masasana.ai
deployEnvironment: production
subdomains:
staging: stg
development: dev
# ToDo: Check if microk8s use different classes
# TODO: find usages
k8s_ingress_class: nginx
# Identity Management
idm_domain: auth.{{ domain }}
idmDomain: "{{ idm_domain }}"
############################################################################
# computed varibles -> please don't modify by hand! #
############################################################################
domain: '{% if deployEnvironment != "production" %}{{ subdomains[deployEnvironment] }}.{% endif %}{{ masterDomain }}'
kubernetesApi: '{{ hostvars[groups["kubernetes_api"][0]].ansible_host }}'
@@ -0,0 +1,11 @@
######################################
# cert-manager vars for cluster #
######################################
namespace: "cert-manager"
email: wefers@masasana.ai
helm:
repoUrl: "https://charts.jetstack.io"
chart: "cert-manager/cert-manager"
releaseName: "cert-manager"
chartVersion: "1.14.4"
+25
View File
@@ -0,0 +1,25 @@
######################################
# Global vars for Cloud-Cluster #
######################################
# Debug mode for test_task.yml
debug: False
# Cluster name
kubernetesClusterName: 'marcel-stg'
# Cluster enviroment
kubernetesVersion: '1.29.3'
# Cluster Type. Possible types:
# - vanilla # plain kubernetes (HA)
kubernetesClusterType: 'vanilla'
# decide if kube-vip should be installed?
installKubeVip: False
+6
View File
@@ -0,0 +1,6 @@
######################################
# helm3 vars for cluster #
######################################
# Helm install script path
helm_install_script: 'https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3'
+11
View File
@@ -0,0 +1,11 @@
######################################
# Kubernetes ingress controller vars #
######################################
namespace: 'ingress-nginx'
helm:
repoUrl: 'https://kubernetes.github.io/ingress-nginx'
chart: 'ingress-nginx/ingress-nginx'
releaseName: 'ingress-nginx'
chartVersion: '4.10.0'
+9
View File
@@ -0,0 +1,9 @@
######################################
# kube-vip vars for virtual IP #
######################################
# KubeVIP virtual IP settings
virtual_ip: '10.42.0.100'
interface: 'enp7s0'
kube_vip_version: 'v0.5.0'
@@ -0,0 +1,8 @@
######################################
# System vars for Linux Systems #
######################################
# CRI-O container engine + version
crio_version: '1.28'
calico_main_interface: 'interface=enp7s0'
+12
View File
@@ -0,0 +1,12 @@
######################################
# MetalLB Configuration #
######################################
namespace: "metallb"
helm:
repoUrl: "https://metallb.github.io/metallb"
chart: "metallb/metallb"
releaseName: "metallb"
chartVersion: "v0.14.4"
+34
View File
@@ -0,0 +1,34 @@
######################################
# rook-ceph vars for storage #
######################################
namespace: 'rook-ceph'
CLIENT_CHECKER_NAME: 'client.healthchecker'
RGW_POOL_PREFIX: 'default'
rook_external:
csi_rbd_provisioner_secret: ""
csi_rbd_node_secret: ""
# possible types:
# - dev (2 mons/ 4 osds - cloud be changed in the rook cluster-test.yml) # ToDO: set variables
# - prod (requires a minimum set of 3 mons)
rook_cluster_type: 'dev'
# prod an dev variables are fixed. Please do not change the name
rook_cluster_configs:
dev:
name: 'my-cluster'
mons: 1
osds: 3
mgrs: 1
prod:
name: 'rook-ceph'
mons: 3
mgrs: 2
############################################################################
# computed varibles -> please don't modify by hand! #
############################################################################
rook_cluster_config: "{{ rook_cluster_configs[rook_cluster_type] }}"
+19
View File
@@ -0,0 +1,19 @@
######################################
# System vars for Linux Systems #
######################################
# ToDo: Linux base hardening
# Nameserver IPv4 Addresses
# /etc/resolv.conf
#ns1: '8.8.8.8'
#ns2: '4.4.4.4'
# package versions
k8s_pip_version: '25.3.0'
# Necessary System packages we need to intall
# ToDo: Pin packages to fix version; test split string
# ToDo: descripe version split
sys_packages: [ 'curl', 'nano', 'python3', 'python3-pip', 'htop', 'lsb-release', 'git' ]
k8s_sys_packages: [ 'open-iscsi', 'apt-transport-https', 'ca-certificates', 'gnupg' ]
pip_packages: ['PyYAML', 'jmespath', 'kubernetes>={{ k8s_pip_version }},<{{ (k8s_pip_version | string).split(".")[0] | int + 1 }}']