diff options
author | Thedro Neely <thedroneely@gmail.com> | 2019-12-22 21:25:30 -0500 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2019-12-22 21:25:30 -0500 |
commit | 40654887e0efde614701c281742c6c0d72c5d778 (patch) | |
tree | 2330ff6ea553c6ae5d32b1609238195ce448a13e /roles/k8s/files | |
parent | 2bb2c78242001dd3139b965845e9004ada3b9e3c (diff) | |
download | playbooks-40654887e0efde614701c281742c6c0d72c5d778.tar.gz playbooks-40654887e0efde614701c281742c6c0d72c5d778.tar.bz2 playbooks-40654887e0efde614701c281742c6c0d72c5d778.zip |
roles/k8s: Add kubernetes cluster playbook
Diffstat (limited to 'roles/k8s/files')
-rw-r--r-- | roles/k8s/files/containerd-override.conf | 2 | ||||
-rw-r--r-- | roles/k8s/files/daemon.json | 8 | ||||
-rw-r--r-- | roles/k8s/files/k8s-dashboard-admin.yaml | 6 | ||||
-rw-r--r-- | roles/k8s/files/k8s-dashboard-binding.yaml | 11 | ||||
-rw-r--r-- | roles/k8s/files/kubelet | 1 |
5 files changed, 28 insertions, 0 deletions
diff --git a/roles/k8s/files/containerd-override.conf b/roles/k8s/files/containerd-override.conf new file mode 100644 index 0000000..76864e2 --- /dev/null +++ b/roles/k8s/files/containerd-override.conf @@ -0,0 +1,2 @@ +[Service] +ExecStartPre= diff --git a/roles/k8s/files/daemon.json b/roles/k8s/files/daemon.json new file mode 100644 index 0000000..5d18abc --- /dev/null +++ b/roles/k8s/files/daemon.json @@ -0,0 +1,8 @@ +{ + "exec-opts": ["native.cgroupdriver=systemd"], + "log-driver": "json-file", + "log-opts": { + "max-size": "100m" + }, + "storage-driver": "overlay2" +} diff --git a/roles/k8s/files/k8s-dashboard-admin.yaml b/roles/k8s/files/k8s-dashboard-admin.yaml new file mode 100644 index 0000000..639a776 --- /dev/null +++ b/roles/k8s/files/k8s-dashboard-admin.yaml @@ -0,0 +1,6 @@ +apiVersion: v1 +kind: ServiceAccount +metadata: + name: admin-user + namespace: kubernetes-dashboard + diff --git a/roles/k8s/files/k8s-dashboard-binding.yaml b/roles/k8s/files/k8s-dashboard-binding.yaml new file mode 100644 index 0000000..399839f --- /dev/null +++ b/roles/k8s/files/k8s-dashboard-binding.yaml @@ -0,0 +1,11 @@ +kind: ClusterRoleBinding +metadata: + name: admin-user +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: cluster-admin +subjects: +- kind: ServiceAccount + name: admin-user + namespace: kubernetes-dashboard diff --git a/roles/k8s/files/kubelet b/roles/k8s/files/kubelet new file mode 100644 index 0000000..8336325 --- /dev/null +++ b/roles/k8s/files/kubelet @@ -0,0 +1 @@ +KUBELET_EXTRA_ARGS='--fail-swap-on=false' |