Remove k8s object management
This commit is contained in:
parent
c744bb30fe
commit
4f27b68097
8
k8s.sh
8
k8s.sh
@ -1,8 +0,0 @@
|
||||
#! /bin/sh
|
||||
|
||||
unset KUBECONFIG K8S_AUTH_KUBECONFIG
|
||||
ansible-playbook playbooks/pik8s.yml "$@" \
|
||||
-i inventory-localhost \
|
||||
-l localhost \
|
||||
--tags k8s
|
||||
|
@ -23,35 +23,3 @@
|
||||
- name: install openshift
|
||||
pip: name=openshift state=latest
|
||||
tags: [ k8s, packages, pip ]
|
||||
- hosts: localhost
|
||||
gather_facts: no
|
||||
vars:
|
||||
k8s_path: "{{ playbook_dir }}/files/k8s/desu.local"
|
||||
module_defaults:
|
||||
group/k8s:
|
||||
api_version: v1
|
||||
host: "https://192.168.102.1:6443"
|
||||
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:
|
||||
definition:
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: pv-nfs
|
||||
spec:
|
||||
capacity:
|
||||
storage: 1.5Ti
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
persistentVolumeReclaimPolicy: Retain
|
||||
nfs:
|
||||
path: /srv/nfs/k8s
|
||||
server: pi-storage-1.desu.ltd
|
||||
readOnly: false
|
||||
tags: [ k8s, manifest, no-pull ]
|
||||
|
Loading…
Reference in New Issue
Block a user