Skip to content
This repository has been archived by the owner on Jan 28, 2023. It is now read-only.

Commit

Permalink
Use systemd cgroup driver instead of cgroupfs
Browse files Browse the repository at this point in the history
See kubernetes/kubeadm#1394 for details.
  • Loading branch information
rjosephwright committed Dec 13, 2019
1 parent cd65041 commit b193c5b
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 4 deletions.
2 changes: 2 additions & 0 deletions ci/assets/v1.16-external/cluster/vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ docker_options:
'iptables': false
'log-driver': json-file
'storage-driver': overlay2
'exec-opts':
- native.cgroupdriver=systemd
node_groups:
- name: app
min_instances: 3
Expand Down
2 changes: 2 additions & 0 deletions ci/assets/v1.16-stacked/cluster/vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ docker_options:
'iptables': false
'log-driver': json-file
'storage-driver': overlay2
'exec-opts':
- native.cgroupdriver=systemd
node_groups:
- name: app
min_instances: 3
Expand Down
2 changes: 2 additions & 0 deletions ci/assets/v1.17-external/cluster/vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ docker_options:
'iptables': false
'log-driver': json-file
'storage-driver': overlay2
'exec-opts':
- native.cgroupdriver=systemd
node_groups:
- name: app
min_instances: 3
Expand Down
2 changes: 2 additions & 0 deletions ci/assets/v1.17-stacked/cluster/vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ docker_options:
'iptables': false
'log-driver': json-file
'storage-driver': overlay2
'exec-opts':
- native.cgroupdriver=systemd
node_groups:
- name: app
min_instances: 3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ authentication:
enabled: true
x509:
clientCAFile: /etc/kubernetes/pki/ca.crt
cgroupDriver: systemd
clusterDNS:
- {{ .ClusterDNS }}
clusterDomain: {{ .ClusterDomain }}
Expand Down
2 changes: 2 additions & 0 deletions stack/ansible/keights-stack/tasks/present.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
'iptables': false
'log-driver': journald
'storage-driver': overlay2
'exec-opts':
- native.cgroupdriver=systemd

- name: set etcd device
set_fact:
Expand Down
3 changes: 2 additions & 1 deletion stack/cloudformation/etcd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ Parameters:
"ip-masq": false,
"iptables": false,
"log-driver": "journald",
"storage-driver": "overlay2"
"storage-driver": "overlay2",
"exec-opts": ["native.cgroupdriver=systemd"]
}
Conditions:
Expand Down
3 changes: 2 additions & 1 deletion stack/cloudformation/master-external.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ Parameters:
"ip-masq": false,
"iptables": false,
"log-driver": "journald",
"storage-driver": "overlay2"
"storage-driver": "overlay2",
"exec-opts": ["native.cgroupdriver=systemd"]
}
KubeadmInitConfigTemplate:
Description: >-
Expand Down
3 changes: 2 additions & 1 deletion stack/cloudformation/master-stacked.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ Parameters:
"ip-masq": false,
"iptables": false,
"log-driver": "journald",
"storage-driver": "overlay2"
"storage-driver": "overlay2",
"exec-opts": ["native.cgroupdriver=systemd"]
}
KubeadmInitConfigTemplate:
Description: >-
Expand Down
3 changes: 2 additions & 1 deletion stack/cloudformation/node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ Parameters:
"ip-masq": false,
"iptables": false,
"log-driver": "journald",
"storage-driver": "overlay2"
"storage-driver": "overlay2",
"exec-opts": ["native.cgroupdriver=systemd"]
}
KubeadmJoinConfigTemplate:
Description: Template for kubeadm join config file.
Expand Down

0 comments on commit b193c5b

Please sign in to comment.