k8s for all

This commit is contained in:
do
2020-04-21 20:40:30 +02:00
parent 3d3aa7e897
commit fc23acf699
5 changed files with 66 additions and 4 deletions

11
k8s/admin.sls Normal file
View File

@@ -0,0 +1,11 @@
# -*- coding: utf-8 -*-
# vim: ft=yaml
---
include:
- kubernetes.package.repo
k8s_pkgs-kubelet:
pkg.installed:
- pkgs:
- kubectl

1
k8s/etc_default_kubelet Normal file
View File

@@ -0,0 +1 @@
KUBELET_EXTRA_ARGS="--cgroup-driver=systemd --runtime-cgroups=/systemd/system.slice --kubelet-cgroups=/systemd/system.slice"

22
k8s/init.sls Normal file
View File

@@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
# vim: ft=yaml
---
include:
- .admin
/etc/default/kubelet:
file.managed:
- source: salt://k8s/etc_default_kubelet
- mode: 644
- user: root
- group: root
k8s_pkgs:
pkg.installed:
- pkgs:
- docker.io
- cgroupfs-mount
- debootstrap
- kubectl
- kubelet