Skip to content

Commit

Permalink
k8s operators now installed via helm
Browse files Browse the repository at this point in the history
  • Loading branch information
Sispheor committed Dec 15, 2023
1 parent ba0cc0c commit 66e430b
Show file tree
Hide file tree
Showing 16 changed files with 238 additions and 86,021 deletions.
8 changes: 8 additions & 0 deletions docs/installation/kubernetes.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,25 @@

The Kubernetes deployment is wrapped by Ansible. The code has been tested with Ansible version `2.15.5`.

### Ansible

Install Ansible dependencies:

```bash
ansible-galaxy install -r k8s/requirements.yml
```

### Python

Install Python dependencies:
```bash
pip3 install -r k8s/requirements.txt
```

### Helm

Operators installation is handled by Helm. Follow [the official documentation](https://helm.sh/docs/intro/install/) to install Helm on your workstation.

## Ansible inventory

An example inventory file is present in `k8s/inventory/group_vars/all/squest.yml`.
Expand Down
4 changes: 2 additions & 2 deletions k8s/backup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
tasks:
- name: Generate job name
ansible.builtin.set_fact:
job_name: "backup-{{ ansible_date_time.iso8601 }}"
job_name: "backup-{{ ansible_date_time.iso8601_basic_short }}"

- name: Create Job from backup cronjob
shell: "kubectl --namespace {{ squest_namespace }} create job --from=cronjob/squest-backup {{ job_name }}"
Expand Down Expand Up @@ -42,7 +42,7 @@
block:
- name: Generate job name
ansible.builtin.set_fact:
job_name: "rsync-backup-{{ ansible_date_time.iso8601 }}"
job_name: "rsync-backup-{{ ansible_date_time.iso8601_basic_short }}"

- name: Create Job from rsync backup cronjob
shell: "kubectl --namespace {{ squest_namespace }} create job --from=cronjob/squest-rsync-backup {{ job_name }}"
Expand Down
2 changes: 1 addition & 1 deletion k8s/inventory/group_vars/all/squest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ squest_django:
TZ: "Europe/Paris"
DB_HOST: "mariadb"
DB_PORT: "3306"
REDIS_CACHE_HOST: "rfrm-redis"
REDIS_CACHE_HOST: "redis-standalone"
DEBUG: "true"
DB_USER: "{{ squest_db.user }}"
DB_PASSWORD: "{{ squest_db.password }}"
Expand Down
13 changes: 13 additions & 0 deletions k8s/squest_k8s/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
prometheus_operator_crds_chart_version: "8.0.1"

cert_manager_chart_version: "v1.13.3"

mariadb_operator_chart_version: "0.23.1"

rabbitmq_operator_chart_version: "3.10.7"

rabbitmq_topology_operator_manifest_version: "v1.12.2"
rabbitmq_topology_operator_manifest_url: "https://github.com/rabbitmq/messaging-topology-operator/releases/download/{{ rabbitmq_topology_operator_manifest_version }}/messaging-topology-operator-with-certmanager.yaml"

# Redis operator: https://github.com/OT-CONTAINER-KIT/redis-operator
redis_operator_chart_version: "0.15.9"
5,623 changes: 0 additions & 5,623 deletions k8s/squest_k8s/files/cert-manager.v1.13.2.yml

This file was deleted.

17,611 changes: 0 additions & 17,611 deletions k8s/squest_k8s/files/mariadb-operator.v0.22.0.yml

This file was deleted.

42,469 changes: 0 additions & 42,469 deletions k8s/squest_k8s/files/prometheus-operator.v0.70.0.yml

This file was deleted.

5,144 changes: 0 additions & 5,144 deletions k8s/squest_k8s/files/rabbitmq-operator.v2.5.0.yml

This file was deleted.

Loading

0 comments on commit 66e430b

Please sign in to comment.