nginx load balancing internal/external working

This commit is contained in:
2024-05-29 01:07:21 -04:00
parent d732fffd67
commit 3cf600b048
28 changed files with 348 additions and 197 deletions

21
ansible/README.md Normal file
View File

@@ -0,0 +1,21 @@
# Ansible
## Install
```bash
pacman -S ansible ansible-core python-kubernetes
```
## Setup
```bash
ansible kubernetes -m ping -i inventory.yaml
```
## Updates
```bash
ansible-playbook -i ansible/inventory.yaml ansible/upgrade-kubernetes-nodes.yaml
ansible-playbook -i ansible/inventory.yaml ansible/upgrade-colors.yaml
ansible-playbook -i ansible/inventory.yaml ansible/upgrade-apt.yaml
```

View File

@@ -9,7 +9,7 @@ kubernetes:
colors:
hosts:
orange:
# orange:
yellow:
apt:

View File

@@ -1,19 +0,0 @@
- name: Update quadlets
hosts: colors
become: true
become_user: root
become_method: sudo
tasks:
- name: Copy quadlets with owner and permissions
ansible.builtin.copy:
src: "{{ item }}"
dest: /usr/share/containers/systemd/
owner: root
group: root
mode: '0644'
with_items:
- ../quadlets/iperf3.container
- ../quadlets/pihole.container
- name: Daemon-reload to trigger re-read of quadlets
ansible.builtin.systemd_service:
daemon_reload: true