Compare commits
2 Commits
54ebc8f329
...
c744bb30fe
Author | SHA1 | Date | |
---|---|---|---|
c744bb30fe | |||
e6d34c0200 |
3
k8s.sh
3
k8s.sh
@ -1,6 +1,7 @@
|
||||
#! /bin/sh
|
||||
|
||||
ansible-playbook playbooks/pik8s.yml \
|
||||
unset KUBECONFIG K8S_AUTH_KUBECONFIG
|
||||
ansible-playbook playbooks/pik8s.yml "$@" \
|
||||
-i inventory-localhost \
|
||||
-l localhost \
|
||||
--tags k8s
|
||||
|
@ -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