CentOS7 Deployment Kubernetes

Source: Internet
Author: User

OneInstalling Docker

Yum install-y dockersystemctl enable Docker && Systemctl start Docker


Ii.Installing kubeadm, kubelet and Kubectl

Cat <<eof >/etc/yum.repos.d/kubernetes.repo[kubernetes]name=kubernetesbaseurl=https:// packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64enabled=1gpgcheck=1repo_gpgcheck=1gpgkey=https:// PACKAGES.CLOUD.GOOGLE.COM/YUM/DOC/YUM-KEY.GPG https://packages.cloud.google.com/yum/doc/ Rpm-package-key.gpgeofsetenforce 0yum install-y kubelet kubeadm kubectlsystemctl enable Kubelet && systemctl STA RT Kubelet

1. Turn off SELinux

2.Some users on Rhel/centos 7 has reported issues with traffic being routed incorrectly due to Iptables being Bypassed. You should ensurenet.bridge.bridge-nf-call-iptablesis set to 1 in yoursysctlconfig, e.g.

Cat <<eof >/etc/sysctl.d/k8s.confnet.bridge.bridge-nf-call-ip6tables = 1net.bridge.bridge-nf-call-iptables = 1EOFsysctl--system

Reference https://kubernetes.io/docs/setup/independent/install-kubeadm/

CentOS7 Deployment Kubernetes

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.