Remove k8s object management

This commit is contained in:
Salt 2021-03-01 11:34:45 -06:00
parent c744bb30fe
commit 4f27b68097
2 changed files with 0 additions and 40 deletions

8
k8s.sh
View File

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

View File

@ -23,35 +23,3 @@
- name: install openshift - name: install openshift
pip: name=openshift state=latest pip: name=openshift state=latest
tags: [ k8s, packages, pip ] 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 ]