Skip to content

Commit

Permalink
code review
Browse files Browse the repository at this point in the history
  • Loading branch information
Sispheor committed Dec 15, 2023
1 parent 43fbfcb commit ba0cc0c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/installation/kubernetes.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ The Kubernetes deployment is wrapped by Ansible. The code has been tested with A
Install Ansible dependencies:

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

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

## Ansible inventory
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.date }}
job_name: "backup-{{ ansible_date_time.iso8601 }}"

- 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.date }}
job_name: "rsync-backup-{{ ansible_date_time.iso8601 }}"

- name: Create Job from rsync backup cronjob
shell: "kubectl --namespace {{ squest_namespace }} create job --from=cronjob/squest-rsync-backup {{ job_name }}"
Expand Down
1 change: 0 additions & 1 deletion k8s/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@
hosts: localhost
gather_facts: False


roles:
- role: squest_k8s
1 change: 1 addition & 0 deletions k8s/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
kubernetes==24.2.0
3 changes: 3 additions & 0 deletions k8s/requirements.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
collections:
- name: kubernetes.core
version: 2.3.2

0 comments on commit ba0cc0c

Please sign in to comment.