使用阿里巴巴開源映象站映象——Kubernetes 映象
Kubernetes 映象簡介
Kubernetes 映象配置方法
基於CentOS / RHEL / Fedora系統配置方法
(1)檢視系統版本資訊
[root@centos ~]# hostnamectl Static hostname: centos Icon name: computer-vm Chassis: vm Machine ID: f6fc8fb7991c4c518238af7c75f16046 Boot ID: baa5dae1c7614a0790ac9c3b5c0a9b7b Virtualization: vmware Operating System: CentOS Linux 7 (Core) CPE OS Name: cpe:/o:centos:centos:7 Kernel: Linux 3.10.0-1160.el7.x86_64 Architecture: x86-64
(2)新增並檢視
Kubernetes.repo
YUM源
[root@centos ~]# cat <<EOF > /etc/yum.repos.d/kubernetes.repo > [kubernetes] > name=Kubernetes > baseurl= > enabled=1 > gpgcheck=1 > repo_gpgcheck=1 > gpgkey= > EOF [root@centos ~]# cat /etc/yum.repos.d/kubernetes.repo [kubernetes] name=Kubernetes baseurl= enabled=1 gpgcheck=1 repo_gpgcheck=1 gpgkey= [root@centos ~]#
(3)關閉或允許SELINUX安全模式
[root@centos ~]# setenforce 0 [root@centos ~]# getenforce permissive
[root@centos ~]# vim /etc/selinux/config [root@centos ~]# cat /etc/selinux/config # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - No SELinux policy is loaded. SELINUX=disabled # SELINUXTYPE= can take one of three values: # targeted - Targeted processes are protected, # minimum - Modification of targeted policy. Only selected processes are protected. # mls - Multi Level Security protection. SELINUXTYPE=targeted [root@centos ~]# getenforce Disabled
(4)安裝kubernetes
[root@centos ~]# yum install -y kubelet kubeadm kubectl Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.aliyun.com * extras: mirrors.aliyun.com * updates: mirrors.aliyun.com Package kubelet-1.22.4-0.x86_64 already installed and latest version Package kubeadm-1.22.4-0.x86_64 already installed and latest version Package kubectl-1.22.4-0.x86_64 already installed and latest version Nothing to do [root@centos ~]#
(5)啟動kubernetes
[root@centos ~]# systemctl start kubelet [root@centos ~]# systemctl enable kubelet Created symlink from /etc/systemd/system/multi-user.target.wants/kubelet.service to /usr/lib/systemd/system/kubelet.service.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/70003733/viewspace-2851636/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 切換阿里巴巴開源映象站映象——Kali映象阿里
- CentOS 6.9自建開源映象站CentOS
- 阿里巴巴開源容器映象加速技術阿里
- 國內開源映象站彙總
- Cargo(Rust) 使用映象源CargoRust
- CentOS 更改 yum 映象源為阿里雲映象源CentOS阿里
- docker/kubernetes國內源/映象源解決方式Docker
- Docker 映象源Docker
- 常用映象源
- 加速 Kubernetes 映象拉取
- Kubernetes建立資料中心級apt映象站點APT
- 國內映象源
- Anacnoda映象在阿里雲映象站首發上線阿里
- ClickHouse映象在阿里雲映象站首發上線阿里
- Termux映象在阿里雲映象站首發上線UX阿里
- Grafana映象在阿里雲映象站首發上線Grafana阿里
- 收藏|2021年阿里雲開源映象站最熱門映象王全梳理!(附下載連結和Top20映象王排名)阿里
- 阿里雲開源映象站支援IPv6訪問阿里
- 華為開源映象站體驗評測報告
- 使用npm映象NPM
- Rocky Linux映象在阿里雲映象站首發上線Linux阿里
- LFS系列映象在阿里雲映象站首發上線阿里
- Circle Linux映象在阿里雲映象站首發上線Linux阿里
- HunggingFace的映象加速站
- 國內npm源映象(npm加速下載) 指定npm映象NPM
- pip更換映象源
- pip 映象源設定
- 修改Python的映象源Python
- SBT 配置映象加速源
- 使用Travis在Docker Hub上管理開源Docker映象Docker
- 國內開源映象站資訊盤點(建議收藏!)
- 阿里VS華為-開源映象站體驗及評測阿里
- 配置阿里雲映象—MongoDB 映象阿里MongoDB
- 使用淘寶映象
- 小陳的容器映象站
- NPM映象站全新上線NPM
- 開源軟體映象站的使用:騰訊軟體源、阿里軟體源、浙大軟體源阿里
- maven配置 阿里巴巴映象 settings檔案Maven阿里