1. 程式人生 > >kubelet 安裝kubernetes

kubelet 安裝kubernetes

led rpm bit all pack ant index native let

#vim /etc/docker/daemon.json

{ "exec-opts": ["native.cgroupdriver=cgroupfs"]

}

#systemctl enable docker && systemctl start docker

#/etc/yum.repos.d/kubernetes.repo

[kubernetes]

name=Kubernetes

baseurl=https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64

enabled=1

gpgcheck=1

repo_gpgcheck=1

gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg


#setenforce 0

# yum install -y kubelet kubeadm kubectl ebtables

# systemctl enable kubelet && systemctl start kubelet

#vim /etc/sysctl.d/k8s.conf

net.bridge.bridge-nf-call-ip6tables = 1

net.bridge.bridge-nf-call-iptables = 1









kubelet 安裝kubernetes