kubenetes1.26中安装kubesphere3.4版本
一、安装前环境准备
# kubesphere官网:https://kubesphere.io/zh/docs/v3.4/introduction/what-is-kubesphere/ # 1.kubenetes版本查看
[root@master kubesphere]# kubectl get nodes
NAME STATUS ROLES AGE VERSION
master Ready control-plane 106m v1.26.0
node1 Ready work 103m v1.26.0 # 2.kubesphere安装前环境准备
# https://kubesphere.io/zh/docs/v3.4/installing-on-kubernetes/introduction/prerequisites/ Centos 7.9
cpu内存:4核8G
硬盘:50G 依赖项:yum install -y socat、conntrack、ebtables、ipset # 2.集群中创建默认StorageClass
# 默认没有,可以自建
创建 StorageClass
设置默认 StorageClass
# 创建storageclass最后
[root@master kubesphere]# cat sc.yaml
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: local-storage
provisioner: kubernetes.io/no-provisioner
volumeBindingMode: WaitForFirstConsumer # 设置为默认StorageClass
ubectl patch storageclass local-storage -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}' # 执行查看
[root@master kubesphere]# kubectl get sc
NAME PROVISIONER RECLAIMPOLICY VOLUMEBINDINGMODE ALLOWVOLUMEEXPANSION AGE
local-storage (default) kubernetes.io/no-provisioner Delete WaitForFirstConsumer false 54m PS:上面创建的storageclass 确实可以成功安装kubesphere,但是local-storage配合pvc无法动态创建pv。因此,创建storageclass 也可以使用nfs-storageclass
二、安装kubesphere
# 1.如果配置要求达到8核16G,可以把插件都启用安装上,没有的话就最小化安装
# 执行命令安装
kubectl apply -f https://github.com/kubesphere/ks-installer/releases/download/v3.4.1/kubesphere-installer.yaml kubectl apply -f https://github.com/kubesphere/ks-installer/releases/download/v3.4.1/cluster-configuration.yaml # 2.检查安装日志,上面命令执行完成后,等待10分钟左右可以看到
Start installing monitoring
Start installing multicluster
Start installing openpitrix
Start installing network
**************************************************
Waiting for all tasks to be completed ...
task network status is successful (1/4)
task openpitrix status is successful (2/4)
task multicluster status is successful (3/4) task monitoring status is successful (4/4)
**************************************************
Collecting installation results ... #####################################################
### Welcome to KubeSphere! ###
##################################################### Console: http://192.168.10.20:30880
Account: admin
Password: P@88w0rd
NOTES:
1. After you log into the console, please check the
monitoring status of service components in
"Cluster Management". If any service is not
ready, please wait patiently until all components
are up and running.
2. Please change the default password after login. #####################################################
https://kubesphere.io 2024-04-17 18:06:26
#####################################################
# 3.使用 kubectl get pod --all-namespaces 查看所有 Pod 在 KubeSphere 相关的命名空间是否正常运行。如果是正常运行,请通过以下命令来检查控制台的端口(默认为 30880):
[root@master kubesphere]# kubectl get pod --all-namespaces
NAMESPACE NAME READY STATUS RESTARTS AGE
kube-system calico-kube-controllers-6d6dc86d84-dfdsv 1/1 Running 0 127m
kube-system calico-node-r6zrj 1/1 Running 0 127m
kube-system calico-node-xh8dv 1/1 Running 1 (125m ago) 127m
kube-system calico-typha-57cbf5b54d-4zc9r 1/1 Running 0 127m
kube-system coredns-567c556887-j9jfb 1/1 Running 0 133m
kube-system coredns-567c556887-mv57p 1/1 Running 0 133m
kube-system etcd-master 1/1 Running 0 133m
kube-system kube-apiserver-master 1/1 Running 0 133m
kube-system kube-controller-manager-master 1/1 Running 0 133m
kube-system kube-proxy-4lrj6 1/1 Running 0 133m
kube-system kube-proxy-pdwzp 1/1 Running 0 130m
kube-system kube-scheduler-master 1/1 Running 0 133m
kube-system snapshot-controller-0 1/1 Running 0 42m
kubesphere-controls-system default-http-backend-864f4f5c6b-s6s92 1/1 Running 1 (40m ago) 41m
kubesphere-controls-system kubectl-admin-c6988866d-ghstw 1/1 Running 0 34m
kubesphere-monitoring-system alertmanager-main-0 2/2 Running 0 38m
kubesphere-monitoring-system kube-state-metrics-5f77fc8f6d-7pvbz 3/3 Running 0 38m
kubesphere-monitoring-system node-exporter-7nwsc 2/2 Running 0 38m
kubesphere-monitoring-system node-exporter-kf5cj 2/2 Running 0 38m
kubesphere-monitoring-system notification-manager-deployment-f86fdf45d-m5gj9 2/2 Running 0 37m
kubesphere-monitoring-system notification-manager-operator-7b8dcfd75c-bpm6c 2/2 Running 0 37m
kubesphere-monitoring-system prometheus-k8s-0 0/2 Pending 0 38m
kubesphere-monitoring-system prometheus-operator-845b8fb9df-nxhpd 2/2 Running 0 38m
kubesphere-system ks-apiserver-756b474857-47jjd 1/1 Running 0 41m
kubesphere-system ks-console-876f69ff4-47rgn 1/1 Running 0 41m
kubesphere-system ks-controller-manager-64d7d5dc77-95ln2 1/1 Running 0 41m
kubesphere-system ks-installer-7fc5675448-8wphm 1/1 Running 0 43m [root@master kubesphere]# kubectl get svc/ks-console -n kubesphere-system
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
ks-console NodePort 10.96.165.196 <none> 80:30880/TCP 43m
4.确保在安全组中打开了 30880 端口,通过 NodePort (IP:30880) 使用默认帐户和密码 (admin/P@88w0rd) 访问 Web 控制台
http://192.168.10.20:30880/login


三、启动插件
# 插件占用资源
https://kubesphere.io/zh/docs/v3.4/pluggable-components/overview/ # 启动日志插件
[root@master kubesphere]# vim cluster-configuration.yaml
logging:
enabled: true # false改true [root@master kubesphere]# kubectl apply -f cluster-configuration.yaml
clusterconfiguration.installer.kubesphere.io/ks-installer configured [root@master kubesphere]# kubectl get pods --all-namespaces | grep log
kubesphere-logging-system fluent-bit-77s4z 0/1 ContainerCreating 0 31s
kubesphere-logging-system fluent-bit-b5zlk 0/1 ContainerCreating 0 31s
kubesphere-logging-system fluentbit-operator-67898f4dd8-lxnd5 1/1 Running 0 2m14s
kubesphere-logging-system opensearch-cluster-data-0 0/1 Pending 0 2m31s
kubesphere-logging-system opensearch-cluster-data-1 0/1 Pending 0 2m30s
kubesphere-logging-system opensearch-cluster-master-0 0/1 Pending 0 2m32s
kubenetes1.26中安装kubesphere3.4版本的更多相关文章
- 在kali中安装两个版本的python
在kali中安装两个版本的python 在kali中已经预装了两个版本的python,但是没有装pip(>︿<). 这时使用python或者python3表示python3:使用pytho ...
- Window 中安装python多版本环境
由于python 3 已是目前稳定,且是将来版本版本.新学者可以直接从python3入手学习.但是目前还有很多企业级应用使用的是python 2,可能还得要维护.所以,我们在本地windows中可以安 ...
- 使用pyenv在系统中安装多个版本的python
pyenv的安装与使用 如果没有安装git,首先要安装git apt-get install git 安装完成后,使用自动安装程序提供的单行程进行安装: curl -L https://github. ...
- centos7中安装mysql5.6版本 + 主从复制
centos安装5.6版本:CentOS7下使用YUM安装MySQL5.6 主从复制:Mysql主从复制与读写分离原理及配置教程 主从复制问题及配置 卸载和安装5.7版本:CentOS 7 安装与卸载 ...
- Ubuntu中安装gdal python版本
安装过程: python包是从C++包中编译出来的,所以需要将源码下载进行编译安装 1.GDAL中的矢量数据处理OGR依赖于Geos,在安装GDAL之前要安装Geos Geos的下载地址:http:/ ...
- vmware 中安装Ghost XP 版本心得
安装是肯定是选择 ISO映像文件,第一次进入真能进入Ghost选择界面, 无论你第一次 进入的是pe 或 一键分区还是 ghost到C盘最后你再重启就总是让你按任意键或Ctrl+Alt+Del 自然想 ...
- 虚拟机中安装完 CentOS7minimal 版本后无法联网的问题
问题描述 安装完系统后无法上网,然后进入到目录 /etc/sysconfig/network-script 查看.发现只有一个 ifcfg-lo. 解决办法 这种情况是没有识别到网卡. 在 VMwar ...
- How to find out which version of tensorflow is installed in my pc? - 如何找出我的电脑中安装了哪个版本的 tensorflow?
I'm using tensorflow and have got some weired issues. I'm told it might be related to the version of ...
- 安装的 Python 版本太多互相干扰?pyenv 建议了解一下。
写在之前 我们都知道现在的 Python 有 Python2 和 Python3,但是由于各种乱七八糟的原因导致这俩哥们要长期共存,荣辱与共,尴尬的是这哥俩的差异还比较大,在很多时候我们可能要同时用到 ...
- 笔记本1050ti显卡安装最新驱动版本 (415.27) 记录 NVIDIA显卡GeForce系列 (Ubuntu18.04)
在Linux上安装驱动,这事情多半是跑CUDA程序的人才会搞的,多年前学CUDA时为这一步骤头疼的很,现如今已经比较熟悉了,今日给出一些记录. 首先,在NVIDIA官方网站上找到驱动下载页面: htt ...
随机推荐
- 记一次 .NET某半导体CIM系统 崩溃分析
一:背景 1. 讲故事 前些天有一位朋友在公众号上找到我,说他们的WinForm程序部署在20多台机器上,只有两台机器上的程序会出现崩溃的情况,自己找了好久也没分析出来,让我帮忙看下怎么回事,就喜欢这 ...
- C# SM2 解密 对接兴业银行业务
下载地址
- KingbaseES V8R6集群运维案例之---修改ssh端口后脚本创建互信
案例分析: 在KingbaseES V8R6集群部署时,需要建立节点之间ssh互信(或者使用securecmdd工具),在有的生产环境,为了安全起见会修改ssh的默认端口:KingbaseES V8R ...
- KingbaseES错误分析 -- “requested character too large”
一.适用于: 本文档使用于KingbaseES所有版本. 二.问题现象: 使用从其他数据库迁移到KingbaseES数据库的自定义函数.存储过程.Package包..出现以下错误信息: 错误:所请求的 ...
- mysql---插入日期类型的数据并把其设置为主键
Python日期格式化方法 import datetime datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S") dt=dat ...
- ET介绍——C#更好的协程
更好的协程 上文讲了一串回调就是协程,显然这样写代码,增加逻辑,插入逻辑非常容易出错.我们需要利用异步语法把这个异步回调的形式改成同步的形式,幸好C#已经帮我们设计好了,看代码 // example2 ...
- GraphPro
GraphPro: Graph Pre-training and Prompt Learning for Recommendation 北京B区 / 032机 北京B区 / 224机 数据集介绍 本文 ...
- 2020.02.05【NOIP提高组】模拟A 组
[toc] CF293B Distinct Paths=JZOJ 4012 CF261E Maxim and Calculator=JZOJ 4010 JZOJ 2292 PPMM 题目 满足队列出入 ...
- 如何在 Python 中执行 MySQL 结果限制和分页查询
Python MySQL 限制结果 限制结果数量 示例 1: 获取您自己的 Python 服务器 选择 "customers" 表中的前 5 条记录: import mysql.c ...
- 深究可见性,原子性,有序性的解决方案之volatile源码解析
上节java内存模型(jmm)概念初探大致了解了由于cpu的快速发展,导致的越来越复杂的内存模型诞生,java内存模型相当于是底层内存模型的映射(实际并不是一一映射,但可以借鉴理解),也是衍生出并发三 ...