当前位置: 首页 > news >正文

网站建设从入门到精通 网盘拓者8室内设计网

网站建设从入门到精通 网盘,拓者8室内设计网,郑州大型网站建设,百度站长工具怎么用文章目录 1.K8s 部署方式2.操作系统基础配置3.安装部署 K8s4.验证 K8s 集群5.部署测试资源 1.K8s 部署方式 kubeadm: kubekey, sealos, kubespray二进制: kubeaszrancher 2.操作系统基础配置 主机名内网IP外网IPmaster192.168.66.2139.198.9.7node1192.168.66.3139.198.40.17… 文章目录 1.K8s 部署方式2.操作系统基础配置3.安装部署 K8s4.验证 K8s 集群5.部署测试资源 1.K8s 部署方式 kubeadm: kubekey, sealos, kubespray二进制: kubeaszrancher 2.操作系统基础配置 主机名内网IP外网IPmaster192.168.66.2139.198.9.7node1192.168.66.3139.198.40.175node2192.168.66.4139.198.16.33 内网互通每个机器有自己域名防火墙开放30000~32767端口 #各个机器设置自己的域名 hostnamectl set-hostname master hostnamectl set-hostname node1 hostnamectl set-hostname node2# 将 SELinux 设置为 permissive 模式相当于将其禁用 setenforce 0 sed -i s/^SELINUXenforcing$/SELINUXpermissive/ /etc/selinux/config#关闭swap swapoff -a sed -ri s/.*swap.*/#/ /etc/fstab#允许 iptables 检查桥接流量 cat EOF | sudo tee /etc/modules-load.d/k8s.conf br_netfilter EOFcat EOF | sudo tee /etc/sysctl.d/k8s.conf net.bridge.bridge-nf-call-ip6tables 1 net.bridge.bridge-nf-call-iptables 1 EOF sudo sysctl --system配置时间同步: yum install chrony# 上面的手工操作也可以使用 sed 自动替换 sed -i s/^pool pool.*/pool cn.pool.ntp.org iburst/g /etc/chrony.confsystemctl enable chronyd --now# 执行查看命令 chronyc sourcestats -v安装依赖: # 安装 Kubernetes 系统依赖包 yum install -y curl socat conntrack ebtables ipset ipvsadm# 安装 tar 包不装的话后面会报错。openEuler 也是个奇葩迭代这么多版本了默认居然还不安装 tar yum install tar3.安装部署 K8s master节点: 下载 kk: mkdir ~/kubekey cd ~/kubekey/# 选择中文区下载(访问 GitHub 受限时使用) export KKZONEcn curl -sfL https://get-kk.kubesphere.io | sh -#查看 KubeKey 支持的 Kubernetes 版本列表 ./kk version --show-supported-k8s创建 K8s 集群部署配置文件: # 创建 K8s 集群部署配置文件 ./kk create config -f k8s-v1288.yaml --with-kubernetes v1.28.8修改配置文件: vi k8s-v1288.yaml# 修改配置文件 apiVersion: kubekey.kubesphere.io/v1alpha2 kind: Cluster metadata:name: sample spec:hosts:- {name: master, address: 192.168.66.2, internalAddress: 192.168.66.2, user: root, password: 111111zZ!}- {name: node1, address: 192.168.66.3, internalAddress: 192.168.66.3, user: root, password: 111111zZ!}- {name: node2, address: 192.168.66.4, internalAddress: 192.168.66.4, user: root, password: 111111zZ!}roleGroups:etcd:- mastercontrol-plane:- masterworker:- master- node1- node2controlPlaneEndpoint:## Internal loadbalancer for apiserversinternalLoadbalancer: haproxydomain: lb.opsxlab.cnaddress: port: 6443kubernetes:version: v1.28.8clusterName: opsxlab.cnautoRenewCerts: truecontainerManager: containerdetcd:type: kubekeynetwork:plugin: calicokubePodsCIDR: 10.233.64.0/18kubeServiceCIDR: 10.233.0.0/18## multus support. https://github.com/k8snetworkplumbingwg/multus-cnimultusCNI:enabled: falseregistry:privateRegistry: namespaceOverride: registryMirrors: []insecureRegistries: []addons: []执行配置文件: ./kk create cluster -f k8s-v1288.yaml[rootksp-master-1 kubekey]# ./kk create cluster -f k8s-v1288.yaml_ __ _ _ __ | | / / | | | | / / | |/ / _ _| |__ ___| |/ / ___ _ _ | \| | | | _ \ / _ \ \ / _ \ | | | | |\ \ |_| | |_) | __/ |\ \ __/ |_| | \_| \_/\__,_|_.__/ \___\_| \_/\___|\__, |__/ ||___/14:24:09 CST [GreetingsModule] Greetings 14:24:09 CST message: [node2] Greetings, KubeKey! 14:24:09 CST message: [master] Greetings, KubeKey! 14:24:09 CST message: [node1] Greetings, KubeKey! 14:24:09 CST success: [node2] 14:24:09 CST success: [master] 14:24:09 CST success: [node1] 14:24:09 CST [NodePreCheckModule] A pre-check on nodes 14:24:09 CST success: [node2] 14:24:09 CST success: [master] 14:24:09 CST success: [node1]14:24:09 CST [ConfirmModule] Display confirmation form -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | name | sudo | curl | openssl | ebtables | socat | ipset | ipvsadm | conntrack | chrony | docker | containerd | nfs client | ceph client | glusterfs client | time | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | master | y | y | y | y | y | y | y | y | y | | | | | | CST 14:24:09 | | node1 | y | y | y | y | y | y | y | y | y | | | | | | CST 14:24:09 | | node2 | y | y | y | y | y | y | y | y | y | | | | | | CST 14:24:09 | --------------------------------------------------------------------------------------------------------------------------------------------------------------------This is a simple check of your environment. Before installation, ensure that your machines meet all requirements specified at https://github.com/kubesphere/kubekey#requirements-and-recommendationsContinue this installation? [yes/no]:yesnfs client、ceph client、glusterfs client 3 个与存储有关的 client 显示没有安装。 docker、containerd 会根据配置文件选择的 containerManager 类型自动安装。 4.验证 K8s 集群 kubectl get nodes获取在 K8s 集群节点上已经下载的 Image 列表: crictl images lskubectl get pod -A5.部署测试资源 kubectl create deployment nginx --imagenginx:alpine --replicas2kubectl create service nodeport nginx --tcp80:80kubectl get svc -o wide
http://www.w-s-a.com/news/880347/

相关文章:

  • 做化妆品注册和注册的网站有哪些wordpress加关键字
  • 四川新站优化php笑话网站源码
  • 外贸类网站酷玛网站建设
  • 合肥网站设计建设南宁网站seo推广优化公司
  • 临沂百度网站7x7x7x7x8黄全场免费
  • 海洋牧场网站建设大良网站设计价格
  • 手机端网站关键字排名北京seo公司哪家好
  • 福建建设培训中心网站网站建站服务公司地址
  • 青岛网站优化快速排名企业网址怎么整
  • 做公司网站用什么系统seo搜索排名优化方法
  • dw怎么做网站标题图标做网站重庆
  • 机场建设相关网站公司官网设计制作
  • 大学网站建设的目标技术支持 优府网络太原网站建设
  • wordpress设置密码访问带提示广州做网站优化哪家专业
  • 如何帮人做网站赚钱西安室内设计公司排名
  • 房产网站建设产品网站域名和邮箱域名
  • 网站建设核心优势seo求职信息
  • 网站手册自己在百度上可以做网站吗
  • 影楼网站源码建行业网站的必要性
  • 深圳app网站设计软件开发公司税收优惠政策
  • 北京市中关村有哪家可以做网站维护客户管理系统 wordpress
  • 做网站拉客户有效吗全景图网页制作工具
  • 网站建设公司行业建设网站需要提供什么资料
  • 别人的做网站网页打不开图片
  • 北京专业网站设计推荐怎么建立网站网址
  • 上海网站建设开发公司哪家好网站数据搬家
  • 杭州建站平台哪里有免费的网站推广软件
  • 深圳极速网站建设服务什么网站可以做产品入驻
  • 淄博易宝网站建设app推广拉新公司
  • 营销型外贸网站建设软件备案域名出租