PIKUBERNETES PIKUBERNETES PIKUBERNETES

This commit is contained in:
Salt 2021-02-18 18:47:34 -06:00
parent 4fc6d76c86
commit 994fdfff88
3 changed files with 35 additions and 6 deletions

View File

@ -2,18 +2,35 @@
all:
vars:
ansible_user: ansible
ansible_become: yes
children:
home:
vars:
ansible_become: yes
children:
pik8s:
vars:
docker_apt_arch: arm64
children:
pik8s_masters:
vars:
kubernetes_role: master
hosts:
pi-kub-master-1.desu.ltd:
ansible_host: 192.168.102.1
pik8s_nodes:
vars:
kubernetes_role: node
hosts:
pi-kub-node-1.desu.ltd:
ansible_host: 192.168.102.10
pi-kub-node-2.desu.ltd:
ansible_host: 192.168.102.11
pi-kub-node-3.desu.ltd:
ansible_host: 192.168.102.12
desktop:
hosts:
dsk-ryzen-0.desu.ltd:
lap-s76-lemp9-0.desu.ltd:
prod:
vars:
ansible_become: yes
children:
db:
hosts:
@ -28,8 +45,6 @@ all:
hosts:
game1.desu.ltd:
k8s:
vars:
ansible_become: yes
children:
k8s_masters:
vars:

13
playbooks/pik8s.yml Normal file
View File

@ -0,0 +1,13 @@
#!/usr/bin/env ansible-playbook
# vim:ft=ansible:
---
- hosts: pik8s
roles:
- role: docker
tags: [ k8s, docker, skip-pull ]
- role: k8s
vars:
kubernetes_enable_web_ui: yes
tags: [ k8s, skip-pull ]
- role: zerotier
tags: [ k8s, zerotier ]

View File

@ -19,4 +19,5 @@
- import_playbook: playbooks/web.yml
- import_playbook: playbooks/game.yml
- import_playbook: playbooks/desktop.yml
- import_playbook: playbooks/pik8s.yml
- import_playbook: playbooks/k8s.yml