Fix swap bug
This commit is contained in:
parent
c7eacf1656
commit
8d8a1e1dcb
2 changed files with 10 additions and 0 deletions
|
|
@ -13,6 +13,10 @@
|
||||||
# when:
|
# when:
|
||||||
# - kubernetes_cri_changed is changed
|
# - 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
|
- name: Remove swapfile from /etc/fstab
|
||||||
mount:
|
mount:
|
||||||
name: swap
|
name: swap
|
||||||
|
|
|
||||||
|
|
@ -7,12 +7,18 @@
|
||||||
<port protocol="tcp" port="443"/>
|
<port protocol="tcp" port="443"/>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if kubernetes_master == true %}
|
{% if kubernetes_master == true %}
|
||||||
|
# Kubernetes API server, used by all
|
||||||
<port protocol="tcp" port="6443"/>
|
<port protocol="tcp" port="6443"/>
|
||||||
|
# etcd server client API, used by kube-apiserver and etcd
|
||||||
<port protocol="tcp" port="2379"/>
|
<port protocol="tcp" port="2379"/>
|
||||||
<port protocol="tcp" port="2380"/>
|
<port protocol="tcp" port="2380"/>
|
||||||
|
# Kubelet API, used by self and control plane
|
||||||
<port protocol="tcp" port="10250"/>
|
<port protocol="tcp" port="10250"/>
|
||||||
|
# kube-scheduler, used by self
|
||||||
<port protocol="tcp" port="10251"/>
|
<port protocol="tcp" port="10251"/>
|
||||||
|
# kube-controler-manager, used by self
|
||||||
<port protocol="tcp" port="10252"/>
|
<port protocol="tcp" port="10252"/>
|
||||||
|
# ???
|
||||||
<port protocol="tcp" port="10255"/>
|
<port protocol="tcp" port="10255"/>
|
||||||
{% else %}
|
{% else %}
|
||||||
<port protocol="tcp" port="10250"/>
|
<port protocol="tcp" port="10250"/>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue