Minor fixes alla round

This commit is contained in:
Salt 2021-03-01 03:36:23 -06:00
parent e6d34c0200
commit c744bb30fe
3 changed files with 8 additions and 2 deletions

1
k8s.sh
View File

@ -1,5 +1,6 @@
#! /bin/sh
unset KUBECONFIG K8S_AUTH_KUBECONFIG
ansible-playbook playbooks/pik8s.yml "$@" \
-i inventory-localhost \
-l localhost \

View File

@ -4,6 +4,10 @@
# k8s
- hosts: pik8s
gather_facts: no
tasks:
- name: install nfs-common
apt: name=nfs-common
tags: [ k8s, packages, apt ]
roles:
- role: k8s
tags: [ k8s, skip-pull ]
@ -27,10 +31,11 @@
group/k8s:
api_version: v1
host: "https://192.168.102.1:6443"
ca_cert: "{{ k8s_path }}/ca.crt"
kubeconfig: "{{ k8s_path }}/kubeconfig"
client_cert: "{{ k8s_path }}/client.crt"
client_key: "{{ k8s_path }}/client.key"
context: kubernetes-admin@kubernetes
validate_certs: no
tasks:
- name: assure nfs pv
k8s:

View File

@ -43,7 +43,7 @@
vars:
nfs_exports:
- "/srv/nfs/bulk 192.168.0.0/16(rw,no_root_squash,sync) 172.23.0.0/16(rw,no_root_squash,sync)"
- "/srv/nfs/k8s 192.168.103.0/24(rw,no_root_squash,sync)"
- "/srv/nfs/k8s 192.168.102.0/24(rw,no_root_squash,sync)"
tags: [ pis, storage, nfs ]
# Multipurpose Pis running unbound
- hosts: pi-mp-1.desu.ltd,pi-mp-2.desu.ltd