-
Notifications
You must be signed in to change notification settings - Fork 0
/
Kubes_worker.yml
29 lines (28 loc) · 1.03 KB
/
Kubes_worker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
---
- name: Base setup - User setup, fail2ban, security.
hosts: all
become: yes
become_user: root
become_method: sudo
vars:
app_user: [rihards]
app_user_groups:
# security_ssh_port: 3013
security_sudoers_passwordless: [rihards]
kubernetes_version: '1.25'
kubernetes_role: node
# kubernetes_kubelet_extra_args: "--node-ip={{ node_ip_address }}" # GCP only
# This one changes node InternalIP. Allows to do kubectl logs and kubectl exec against containers,
# This is good, if it is applied from the start I guess. If you applied the playbook without those extra args from the start, destroy the VM and start again.
vars_files:
- vars/kubernetes.yml # This file just contains kubernetes_join_command, so that I do not have to commit it in repo
- vars/app_user.yml
pre_tasks:
- include: ./tasks/app_user.yml
# - include: ./tasks/gcp.yml # GCP only
- include: ./tasks/containerd.yml
roles:
- geerlingguy.security
- geerlingguy.kubernetes
### Baremetal
# curl, python3-distutils