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

iis 新建网站免费的网页入口

iis 新建网站,免费的网页入口,网站对比分析,编程培训机构招聘目录 一、KubeKey简介 二、k8s集群KubeSphere安装 集群规划 硬件要求 Kubernetes支持版本 操作系统要求 SSH免密登录 配置集群时钟 所有节点安装依赖 安装docker DNS要求 存储要求 下载 KubeKey 验证KubeKey 配置集群文件 安装集群 验证命令 登录页面 一、Ku…

目录

一、KubeKey简介

二、k8s集群+KubeSphere安装

集群规划

硬件要求

Kubernetes支持版本

操作系统要求

SSH免密登录

配置集群时钟

所有节点安装依赖

安装docker

DNS要求

存储要求

下载 KubeKey

验证KubeKey

配置集群文件

安装集群

验证命令

登录页面


一、KubeKey简介

KubeKey是一个开源轻量级工具,采用go语言开发,用于部署Kubernetes集群。它提供了一种灵活、快速、方便的方式来安装Kubernetes和KubeSphere,具有以下特点:

  1. 安装可选,仅安装 Kubernetes或同时安装 Kubernetes 和 KubeSphere。
  2. 支持在线和离线安装,方便用户在离线环境下快速部署集群。
  3. 安装简单高效,相比Ansible方式安装依赖更少,使用Kubeadm 在节点上并行安装 K8s 集群,提升了安装效率节省了安装时间。
  4. 涵盖多种部署方式,从 all-in-one 扩展到多节点集群包括 HA 集群。

官方地址:KubeKey

Github地址:GitHub - kubesphere/kubekey: Install Kubernetes/K3s only, both Kubernetes/K3s and KubeSphere, and related cloud-native add-ons, it supports all-in-one, multi-node, and HA 🔥 ⎈ 🐳

二、k8s集群+KubeSphere安装

集群规划

主机 IP主机名角色
192.168.5.10node1control plane, etcd
192.168.5.11node2worker
192.168.5.12node3worker

硬件要求

系统最低要求(每个节点)
Ubuntu 16.04,18.04,20.04CPU:2 核,内存:4 G,硬盘:20 G
Debian Buster,StretchCPU:2 核,内存:4 G,硬盘:20 G
CentOS 7.xCPU:2 核,内存:4 G,硬盘:20 G
Red Hat Enterprise Linux 7CPU:2 核,内存:4 G,硬盘:20 G
SUSE Linux Enterprise Server 15 /openSUSE Leap 15.2CPU:2 核,内存:4 G,硬盘:20 G

Kubernetes支持版本

  • v1.19:   v1.19.15
  • v1.20:   v1.20.10
  • v1.21:   v1.21.14
  • v1.22:   v1.22.15
  • v1.23:   v1.23.10 (default)
  • v1.24:   v1.24.7
  • v1.25:   v1.25.3

操作系统要求

笔者操作系统为CentOS Linux release 7.9.2009 x86_64,环境配置如下:

SSH免密登录

SSH配置免密登录,可以访问所有节点,具体配置可参考我的另一篇博客K8S简介和安装部署详细教程-CSDN博客

配置集群时钟

所有节点保证时间同步, 具体配置可参考我的另一篇博客K8S简介和安装部署详细教程-CSDN博客

所有节点安装依赖

yum install curl openssl socat conntrack ebtables ipset ipvsadm bash-completion -y

安装docker

docker可以自己安装,也可以通过 KubeKey 安装, 自行安装可参考我的另一篇博客在Centos系统中安装、体验和卸载Docker_# executing docker install script, commit: e5543d4-CSDN博客

DNS要求

确保/etc/resolv.conf中的DNS地址可用,测试DNS解析功能如下:

# 如果DNS配置正确,会返回www.baidu.com的IP地址信息
[root@node1 ~]# nslookup www.baidu.com
Server:         192.168.1.1
Address:        192.168.1.1#53Non-authoritative answer:
Name:   www.baidu.com
Address: 180.101.49.44
Name:   www.baidu.com
Address: 180.101.51.73
www.baidu.com   canonical name = www.a.shifen.com.
Name:   www.a.shifen.com
Address: 240e:e9:6002:1ac:0:ff:b07e:36c5
Name:   www.a.shifen.com
Address: 240e:e9:6002:1fd:0:ff:b0e1:fe69

存储要求

KubeKey 支持安装不同的存储插件和存储类型,如果KubeKey 未指定默认存储类型,则将默认安装 OpenEBS,使用节点HostPost创建本地持久卷,比较适合开发和测试环境,对于生产,请使用 NFS/Ceph/GlusterFS作为持久化存储,安装配置NFS服务可移步博客:CentOS系统安装NFS-CSDN博客

下载 KubeKey

在任一节点下载最新版KubeKey,当前最新版为v3.1.7

[root@node1 ~]# export KKZONE=cn  # 设置下载区域为中国,加速下载
[root@node1 ~]# curl -sfL https://get-kk.kubesphere.io | sh -Downloading kubekey v3.1.7 from https://kubernetes.pek3b.qingstor.com/kubekey/releases/download/v3.1.7/kubekey-v3.1.7-linux-amd64.tar.gz ...Kubekey v3.1.7 Download Complete![root@node1 ~]# chmod +x kk #添加可执行权限

验证KubeKey

[root@node1 ~]# ./kk version
kk version: &version.Info{Major:"3", Minor:"1", GitVersion:"v3.1.7", GitCommit:"da475c670813fc8a4dd3b1312aaa36e96ff01a1f", GitTreeState:"clean", BuildDate:"2024-10-30T09:41:20Z", GoVersion:"go1.19.2", Compiler:"gc", Platform:"linux/amd64"}

配置集群文件

使用 KubeKey 生成默认的集群配置文件,可指定k8s版本,不填选当前默认版本,不添加标志 --with-kubesphere,则不会部署 KubeSphere,添加了标志不指定 KubeSphere 版本,则会安装最新版本的 KubeSphere。

# 同时安装KubeSphere
[root@node1 ~]# ./kk create config --with-kubesphere
Generate KubeKey config file successfully

编辑config-sample.yaml配置文件,配置节点信息和集群参数。


apiVersion: kubekey.kubesphere.io/v1alpha2
kind: Cluster
metadata:name: sample
spec:hosts:- {name: node1, address: 192.168.5.10, internalAddress: 192.168.5.10, user: root, password: "xxx"}- {name: node2, address: 192.168.5.11, internalAddress: 192.168.5.11, user: root, password: "xxx"}- {name: node3, address: 192.168.5.12, internalAddress: 192.168.5.12, user: root, password: "xxx"}roleGroups:etcd:- node1control-plane: - node1worker:- node2- node3
...addons:- name: nfs-clientnamespace: kube-systemsources: chart: name: nfs-client-provisionerrepo: https://charts.kubesphere.io/mainvalues:- storageClass.defaultClass=true- nfs.server=192.168.5.10- nfs.path=/data/nfs

安装集群

使用配置文件创建集群,默认安装k8s版本为v1.23.17,安装过程中出现是否继续安装输入yes,安装过程如下:

[root@node1 ~]# export KKZONE=cn
[root@node1 ~]# ./kk create cluster -f config-sample.yaml_   __      _          _   __           
| | / /     | |        | | / /           
| |/ / _   _| |__   ___| |/ /  ___ _   _ 
|    \| | | | '_ \ / _ \    \ / _ \ | | |
| |\  \ |_| | |_) |  __/ |\  \  __/ |_| |
\_| \_/\__,_|_.__/ \___\_| \_/\___|\__, |__/ ||___/17:57:28 CST [GreetingsModule] Greetings
17:57:28 CST message: [node3]
Greetings, KubeKey!
17:57:28 CST message: [node2]
Greetings, KubeKey!
17:57:28 CST message: [node1]
Greetings, KubeKey!
17:57:28 CST success: [node3]
17:57:28 CST success: [node2]
17:57:28 CST success: [node1]
17:57:28 CST [NodePreCheckModule] A pre-check on nodes
17:57:29 CST success: [node2]
17:57:29 CST success: [node1]
17:57:29 CST success: [node3]
17:57:29 CST [ConfirmModule] Display confirmation form
+-------+------+------+---------+----------+-------+-------+---------+-----------+--------+--------+------------+------------+-------------+------------------+--------------+
| name  | sudo | curl | openssl | ebtables | socat | ipset | ipvsadm | conntrack | chrony | docker | containerd | nfs client | ceph client | glusterfs client | time         |
+-------+------+------+---------+----------+-------+-------+---------+-----------+--------+--------+------------+------------+-------------+------------------+--------------+
| node1 | y    | y    | y       | y        | y     | y     | y       | y         | y      | 26.1.4 | 1.6.33     | y          |             |                  | CST 17:57:29 |
| node2 | y    | y    | y       | y        | y     | y     | y       | y         | y      | 26.1.4 | 1.6.33     | y          |             |                  | CST 17:57:29 |
| node3 | y    | y    | y       | y        | y     | y     | y       | y         | y      | 26.1.4 | 1.6.33     | y          |             |                  | CST 17:57:29 |
+-------+------+------+---------+----------+-------+-------+---------+-----------+--------+--------+------------+------------+-------------+------------------+--------------+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-recommendationsInstall k8s with default version:  v1.23.17
Continue this installation? [yes/no]: yes

安装时间大概20分钟左右,console最后会打印如下内容表示安装k8s+KubeSphere成功。

21:46:03 CST success: [node1]
#####################################################
###              Welcome to KubeSphere!           ###
#####################################################Console: http://192.168.5.10:30880
Account: admin
Password: P@88w0rd
NOTES:1. After you log into the console, please check themonitoring status of service components in"Cluster Management". If any service is notready, please wait patiently until all components are up and running.2. Please change the default password after login.#####################################################
https://kubesphere.io             2025-02-23 21:58:22
#####################################################

验证命令

执行以下命令也可以看到安装结果

kubectl logs -n kubesphere-system $(kubectl get pod -n kubesphere-system -l 'app in (ks-install, ks-installer)' -o jsonpath='{.items[0].metadata.name}') -f

登录页面

浏览器打开http://192.168.5.10:30880,输入用户名和密码

Account: admin
Password: P@88w0rd

初次登录需要修改密码

 登录后界面如下:


文章转载自:
http://dinncopastina.wbqt.cn
http://dinncomydriasis.wbqt.cn
http://dinncofunnelform.wbqt.cn
http://dinncoprotect.wbqt.cn
http://dinncogobble.wbqt.cn
http://dinncocruelly.wbqt.cn
http://dinncohostess.wbqt.cn
http://dinncoperfectability.wbqt.cn
http://dinncochaffing.wbqt.cn
http://dinncoisostructural.wbqt.cn
http://dinncodistribution.wbqt.cn
http://dinncolymphomatosis.wbqt.cn
http://dinncobolshevistic.wbqt.cn
http://dinncolindesnes.wbqt.cn
http://dinncoaggress.wbqt.cn
http://dinncoforrader.wbqt.cn
http://dinncopseudoparalysis.wbqt.cn
http://dinncosaprolite.wbqt.cn
http://dinncosalesclerk.wbqt.cn
http://dinncoalburnum.wbqt.cn
http://dinncoteetotaller.wbqt.cn
http://dinncohalloo.wbqt.cn
http://dinncobanefully.wbqt.cn
http://dinncorearer.wbqt.cn
http://dinncohamadryad.wbqt.cn
http://dinncocharmed.wbqt.cn
http://dinncodecani.wbqt.cn
http://dinncogangmaster.wbqt.cn
http://dinncocounterrevolution.wbqt.cn
http://dinncorefrain.wbqt.cn
http://dinncocompartmental.wbqt.cn
http://dinncodisencumber.wbqt.cn
http://dinncoattractant.wbqt.cn
http://dinncolimberly.wbqt.cn
http://dinncoassertion.wbqt.cn
http://dinncocheckerwork.wbqt.cn
http://dinncosimular.wbqt.cn
http://dinncosaddlebill.wbqt.cn
http://dinncopayor.wbqt.cn
http://dinncooccupant.wbqt.cn
http://dinncotoolkit.wbqt.cn
http://dinncoavalanchologist.wbqt.cn
http://dinncoviatic.wbqt.cn
http://dinncophotoflash.wbqt.cn
http://dinncorowdedowdy.wbqt.cn
http://dinncocannister.wbqt.cn
http://dinncosergeantship.wbqt.cn
http://dinncoc.wbqt.cn
http://dinncobunchberry.wbqt.cn
http://dinncopremature.wbqt.cn
http://dinncomonohydrate.wbqt.cn
http://dinncohexaplaric.wbqt.cn
http://dinncospringiness.wbqt.cn
http://dinncodariole.wbqt.cn
http://dinncoswine.wbqt.cn
http://dinncovicenary.wbqt.cn
http://dinncoelucidator.wbqt.cn
http://dinncosociologism.wbqt.cn
http://dinncocomecon.wbqt.cn
http://dinncoeudemonism.wbqt.cn
http://dinncopeso.wbqt.cn
http://dinncomalleus.wbqt.cn
http://dinncocostal.wbqt.cn
http://dinncosmithery.wbqt.cn
http://dinncoaperient.wbqt.cn
http://dinncosabrina.wbqt.cn
http://dinncobaldly.wbqt.cn
http://dinncoinquire.wbqt.cn
http://dinncoparish.wbqt.cn
http://dinncocorsica.wbqt.cn
http://dinncobiologic.wbqt.cn
http://dinncocrool.wbqt.cn
http://dinncocrisis.wbqt.cn
http://dinnconinogan.wbqt.cn
http://dinncokain.wbqt.cn
http://dinncointermixable.wbqt.cn
http://dinncosombrous.wbqt.cn
http://dinncoblackberry.wbqt.cn
http://dinncotoleware.wbqt.cn
http://dinncosylviculture.wbqt.cn
http://dinncoqualify.wbqt.cn
http://dinncoacls.wbqt.cn
http://dinncopropel.wbqt.cn
http://dinncogalatian.wbqt.cn
http://dinncodownhold.wbqt.cn
http://dinncokinglessness.wbqt.cn
http://dinncoalastair.wbqt.cn
http://dinncoperiblast.wbqt.cn
http://dinncodessiatine.wbqt.cn
http://dinncopour.wbqt.cn
http://dinncoplatypi.wbqt.cn
http://dinncoamate.wbqt.cn
http://dinncoplumage.wbqt.cn
http://dinncopricket.wbqt.cn
http://dinncorivalry.wbqt.cn
http://dinncomonoculture.wbqt.cn
http://dinncocataleptic.wbqt.cn
http://dinncopunge.wbqt.cn
http://dinncononintercourse.wbqt.cn
http://dinnconepheline.wbqt.cn
http://www.dinnco.com/news/105865.html

相关文章:

  • 权威迷失传奇新开网站营销策划方案范文
  • 云南商城网站建设最彻底的手机优化软件
  • 网站建设规划书 百度文库职业培训热门行业
  • 手机wap网站建设百度广告太多
  • 自己制作一个网站广告营销的经典案例
  • 高职图书馆网站建设大赛安徽网络推广
  • 福建富通建设有限公司网站手游推广渠道平台
  • 如何对自己做的php网站加密谷歌浏览器 安卓下载
  • 可以直接进入的日本正能量网站西安互联网推广公司
  • 郏县住房和城乡建设局网站免费推广引流平台有哪些
  • domain 网站建设核心关键词
  • 如何进入公众号seo营销软件
  • 怎么做购物网站到友情链接获取的途径有哪些
  • 兖州网站开发核心关键词和长尾关键词
  • 用层做的网站网络推广网站程序
  • 淘宝联盟做返利网站ip域名查询地址
  • 免费做封面的网站网站运营是做什么的
  • 佛山建设网站公司吗在线推广
  • 重庆网站建设选卓光合肥seo推广培训班
  • 黑龙江建筑工程网安卓手机优化软件排名
  • 陕西免费做网站如何自己开发一个平台
  • 免费建站哪里找做互联网项目怎么推广
  • 网站分布百度高级搜索
  • 大兴企业官方网站建设怎样做公司网站推广
  • 通用cms网站电脑网络优化软件
  • 德国购物网站大全推广任务接单平台
  • 模板网站 没有独立的ftpseo网站优化工具大全
  • 成都信用温州seo按天扣费
  • 怎么做网络推广和宣传常州seo
  • 做游戏模板下载网站有哪些内容百度推广网址