Fix swap bug

This commit is contained in:
Adrien Reslinger 2020-04-25 02:23:35 +02:00
parent c7eacf1656
commit 8d8a1e1dcb
2 changed files with 10 additions and 0 deletions

View file

@ -13,6 +13,10 @@
# when:
# - kubernetes_cri_changed is changed
- name: Disable SWAP since kubernetes can't work with swap enabled (1/2)
shell: |
swapoff -a
- name: Remove swapfile from /etc/fstab
mount:
name: swap

View file

@ -7,12 +7,18 @@
<port protocol="tcp" port="443"/>
{% endif %}
{% if kubernetes_master == true %}
# Kubernetes API server, used by all
<port protocol="tcp" port="6443"/>
# etcd server client API, used by kube-apiserver and etcd
<port protocol="tcp" port="2379"/>
<port protocol="tcp" port="2380"/>
# Kubelet API, used by self and control plane
<port protocol="tcp" port="10250"/>
# kube-scheduler, used by self
<port protocol="tcp" port="10251"/>
# kube-controler-manager, used by self
<port protocol="tcp" port="10252"/>
# ???
<port protocol="tcp" port="10255"/>
{% else %}
<port protocol="tcp" port="10250"/>