首页 > 其他分享 >k8s1.26.1集群搭建

k8s1.26.1集群搭建

时间:2023-03-03 17:23:37浏览次数:46  
标签:centos k8s1.26 集群 https linux download docker com 搭建

安装containerd和kubeadm,kubelet,kubectl

/etc/yum.repo.d/docker-ce.repo内容如下:

[docker-ce-stable]
name=Docker CE Stable - $basearch
baseurl=https://download.docker.com/linux/centos/$releasever/$basearch/stable
enabled=1
gpgcheck=1
gpgkey=https://download.docker.com/linux/centos/gpg

[docker-ce-stable-debuginfo]
name=Docker CE Stable - Debuginfo $basearch
baseurl=https://download.docker.com/linux/centos/$releasever/debug-$basearch/stable
enabled=0
gpgcheck=1
gpgkey=https://download.docker.com/linux/centos/gpg

[docker-ce-stable-source]
name=Docker CE Stable - Sources
baseurl=https://download.docker.com/linux/centos/$releasever/source/stable
enabled=0
gpgcheck=1
gpgkey=https://download.docker.com/linux/centos/gpg

[docker-ce-test]
name=Docker CE Test - $basearch
baseurl=https://download.docker.com/linux/centos/$releasever/$basearch/test
enabled=0
gpgcheck=1
gpgkey=https://download.docker.com/linux/centos/gpg

[docker-ce-test-debuginfo]
name=Docker CE Test - Debuginfo $basearch
baseurl=https://download.docker.com/linux/centos/$releasever/debug-$basearch/test
enabled=0
gpgcheck=1
gpgkey=https://download.docker.com/linux/centos/gpg

[docker-ce-test-source]
name=Docker CE Test - Sources
baseurl=https://download.docker.com/linux/centos/$releasever/source/test
enabled=0
gpgcheck=1
gpgkey=https://download.docker.com/linux/centos/gpg

[docker-ce-nightly]
name=Docker CE Nightly - $basearch
baseurl=https://download.docker.com/linux/centos/$releasever/$basearch/nightly
enabled=0
gpgcheck=1
gpgkey=https://download.docker.com/linux/centos/gpg

[docker-ce-nightly-debuginfo]
name=Docker CE Nightly - Debuginfo $basearch
baseurl=https://download.docker.com/linux/centos/$releasever/debug-$basearch/nightly
enabled=0
gpgcheck=1
gpgkey=https://download.docker.com/linux/centos/gpg

[docker-ce-nightly-source]
name=Docker CE Nightly - Sources
baseurl=https://download.docker.com/linux/centos/$releasever/source/nightly
enabled=0
gpgcheck=1
gpgkey=https://download.docker.com/linux/centos/gpg
View Code

/etc/yum.repo.d/kubernetes.repo内容如下:

[kubernetes]
name = kubernetes
baseurl = https://mirrors.aliyun.com/kubernetes/yum/repos/kubernetes-el7-x86_64/
enabled = 1
gpgcheck = 1
gpgkey = https://mirrors.aliyun.com/kubernetes/yum/doc/rpm-package-key.gpg
yum install kubelet kubeadm kubectl containerd

containerd自动生成配置文件

containerd config default > /etc/containerd/config.toml

重启containerd生效

systemctl daemon-reload && systemctl restart containerd

vim /etc/crictl.yaml

runtime-endpoint: unix:///run/containerd/containerd.sock
image-endpoint: unix:///run/containerd/containerd.sock
timeout: 10
debug: false

创建集群

kubeadm init --control-plane-endpoint "192.168.1.101:6443" --upload-certs

 

标签:centos,k8s1.26,集群,https,linux,download,docker,com,搭建
From: https://www.cnblogs.com/fengzi7314/p/17176344.html

相关文章

  • springcloud-alibaba项目框架搭建
    一、框架、版本仓库管理基于个人项目,设计为将所有微服务作为多模块项目,放在一个git仓库进行管理。项目大的可以一个微服务一个git仓库二、主模块设置主pom只作聚合作用......
  • vm-集群初始化3节点搭建(node01、node02、node03)
    首先确保windows系统,对应的vmware 服务都是正常运行修改虚拟机对应的主机名字设置虚拟机的主机名,重启生效 reboot修改对应的配置hosts 配置文件,vim/etc/hosts关......
  • K8S集群调度,约束
     1.集群调度简介#Scheduler是kubernetes中的调度器组件,主要的任务是把定义的pod分配到集群的节点上。听起来非常简单,但有很多要考虑的问题:公平:如何保证每个节点都......
  • 总结一下搭建个人网站《曼云古籍在线识别》的完整流程
    继2年前开发出一个标注工具PaddleOCRLabel之后,我就开始炼丹之旅,全面allin人工智能,历时一年,终于炼成了第一颗“丹”——针对于古籍的ocr识别模型。经过400万图片的验证,目前......
  • k8s集群调度
    1.集群调度简介#Scheduler是kubernetes中的调度器组件,主要的任务是把定义的pod分配到集群的节点上。听起来非常简单,但有很多要考虑的问题:公平:如何保证每个节点都能......
  • 直播平台搭建源码,canvas 画一条波浪线 进度条
    直播平台搭建源码,canvas画一条波浪线进度条<template> <view>  <canvas:style="{'width':width+'rpx','height':height +'rpx','backgroundColor':'#d2d......
  • SpringCloud微服务实战——搭建企业级开发框架(四十九):数据字典注解的设计与实现
      数据字典是系统中基本的必不可少的功能,在多种多样的系统中,数据字典表的设计都大同小异。但是使用方式确是多种多样,设计好一套易用的数据字典功能模块,可以使开发事半功......
  • 六步搭建机器学习项目雏形框架
    机器学习覆盖的范围十分广泛。这篇文章将整体描述机器学习适用的典型问题,提供实现机器学习项目雏形的框架。首先厘清一些定义。机器学习、人工智能和数据科学区别何......
  • 使用sealos工具安装kubernetes集群
    一、安装前准备1.1、主机规划IP系统角色主机名192.168.80.7CentOS7.6masterk8s-master-1192.168.80.17CentOS7.6nodek8s-master-2192.168.80.27......
  • 基于docker镜像快速搭建开发环境
    准备工作本地docker环境,服务docker镜像下载地址:https://registry-d.ym/harbor/projects/22/repositories哪吒的环境变量配置和挂载配置:http://nezha.compass.ym/#/appM......