Skip to content

Commit

Permalink
Merge pull request #344 from SanikaGawhane/sg-conntrackd
Browse files Browse the repository at this point in the history
Disable conntrackd service to reduce CPU utilization
  • Loading branch information
k8s-ci-robot authored Aug 26, 2020
2 parents 8ef9f58 + 6401575 commit 6595c9d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
1 change: 0 additions & 1 deletion images/capi/ansible/roles/node/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ common_rpms:
common_debs:
- apt-transport-https
- conntrack
- conntrackd
- curl
- ebtables
- jq
Expand Down
7 changes: 7 additions & 0 deletions images/capi/ansible/roles/node/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,10 @@
- name: Edit fstab file to disable swap
shell: sed -ri '/\sswap\s/s/^#?/#/' /etc/fstab
when: ansible_memory_mb.swap.total != 0

- name: Disable conntrackd service
systemd:
name: conntrackd
state: stopped
enabled: false
when: ansible_os_family != "Debian"
3 changes: 3 additions & 0 deletions images/capi/packer/goss/goss-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ service:
kubelet:
enabled: true
running: false
conntrackd:
enabled: false
running: false
{{range $name, $vers := index .Vars .Vars.OS "common-service"}}
{{ $name }}:
{{range $key, $val := $vers}}
Expand Down
1 change: 0 additions & 1 deletion images/capi/packer/goss/goss-vars.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ common_rpms: &common_rpms
common_debs: &common_debs
apt-transport-https:
conntrack:
conntrackd:
curl:
ebtables:
jq:
Expand Down

0 comments on commit 6595c9d

Please sign in to comment.