diff --git a/k8s.sh b/k8s.sh deleted file mode 100755 index ecf9f37..0000000 --- a/k8s.sh +++ /dev/null @@ -1,8 +0,0 @@ -#! /bin/sh - -unset KUBECONFIG K8S_AUTH_KUBECONFIG -ansible-playbook playbooks/pik8s.yml "$@" \ - -i inventory-localhost \ - -l localhost \ - --tags k8s - diff --git a/playbooks/pik8s.yml b/playbooks/pik8s.yml index 80d2c50..fd66cca 100755 --- a/playbooks/pik8s.yml +++ b/playbooks/pik8s.yml @@ -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 ]