Skip to content

Instantly share code, notes, and snippets.

@ytooyama
Created May 25, 2020 05:55
Show Gist options
  • Save ytooyama/c08fc584fdbd0d1114eb8ec047a49d9f to your computer and use it in GitHub Desktop.
Save ytooyama/c08fc584fdbd0d1114eb8ec047a49d9f to your computer and use it in GitHub Desktop.
CentOS 7やOracle Linux 7でkubeadmでクラスターを作るときのファイアウォールの設定
# firewall-cmd --permanent --add-port=6443/tcp
# firewall-cmd --permanent --add-port=2379-2380/tcp
# firewall-cmd --permanent --add-port=10248-10252/tcp
# firewall-cmd --permanent --add-port=10255/tcp
# firewall-cmd --permanent --add-port=8472/udp
# firewall-cmd --add-masquerade --permanent
# firewall-cmd --permanent --add-port=30000-32767/tcp
# systemctl restart firewalld
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment