Minor fixes alla round
This commit is contained in:
parent
e6d34c0200
commit
c744bb30fe
1
k8s.sh
1
k8s.sh
@ -1,5 +1,6 @@
|
||||
#! /bin/sh
|
||||
|
||||
unset KUBECONFIG K8S_AUTH_KUBECONFIG
|
||||
ansible-playbook playbooks/pik8s.yml "$@" \
|
||||
-i inventory-localhost \
|
||||
-l localhost \
|
||||
|
@ -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:
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user