当前位置:网站首页>[kubernetes series] kubesphere is installed on kubernetes
[kubernetes series] kubesphere is installed on kubernetes
2022-07-04 07:08:00 【Run, Deng DengZi】
Catalog
One 、 preparation
1. Version for
stay Kubernetes Installation on KubeSphere 3.3.0,Kubernetes Version must be :v1.19.x,v1.20.x,v1.21.x,v1.22.x or v1.23.x( Experimental support ). If the version does not meet the requirements , Please refer to 【Kubernetes series 】K8s from 1.24.1 Downgrade to 1.23.8 Downgrade or upgrade to a qualified version .
2. Hardware requirements
The machine meets the minimum hardware requirements :CPU > 1 nucleus , Memory > 2 GB.
3. Requirements configured StorageClass
Kubernetes The cluster has been configured with default settings StorageClass. Confirmation method :
kubectl get sc
[[email protected] ~]# kubectl get sc
NAME PROVISIONER RECLAIMPOLICY VOLUMEBINDINGMODE ALLOWVOLUMEEXPANSION AGE
managed-nfs-storage fuseim.pri/ifs Delete Immediate false 3h6m
Two 、 Deploy KubeSphere
1. install
Execute the following command to install :
kubectl apply -f https://github.com/kubesphere/ks-installer/releases/download/v3.3.0/kubesphere-installer.yaml
kubectl apply -f https://github.com/kubesphere/ks-installer/releases/download/v3.3.0/cluster-configuration.yaml
It's common to report mistakes :
[[email protected] kubesphere]# kubectl apply -f kubesphere-installer.yaml
namespace/kubesphere-system created
serviceaccount/ks-installer created
clusterrole.rbac.authorization.k8s.io/ks-installer created
clusterrolebinding.rbac.authorization.k8s.io/ks-installer created
deployment.apps/ks-installer created
error: unable to recognize "kubesphere-installer.yaml": no matches for kind "CustomResourceDefinition" in version "apiextensions.k8s.io/v1beta1"
resolvent :
Modify the configuration file kubesphere-installer.yaml, take “apiextensions.k8s.io/v1beta1” Change it to “apiextensions.k8s.io/v1”.
2. Check the log
Check the installation log :
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
3. see Pod
see Pod Is it working :
kubectl get pod --all-namespaces
kubectl get pods --all-namespaces
NAMESPACE NAME READY STATUS RESTARTS AGE
kube-system calico-kube-controllers-6b77fff45-czfmp 1/1 Running 0 60m
kube-system calico-node-fsbl4 1/1 Running 0 60m
kube-system coredns-6d8c4cb4d-cpjh9 1/1 Running 0 20h
kube-system coredns-6d8c4cb4d-csc8f 1/1 Running 0 20h
kube-system etcd-master01 1/1 Running 0 20h
kube-system kube-apiserver-master01 1/1 Running 0 20h
kube-system kube-controller-manager-master01 1/1 Running 0 20h
kube-system kube-proxy-r5rtc 1/1 Running 0 20h
kube-system kube-scheduler-master01 1/1 Running 0 20h
kubesphere-system ks-installer-c9655d997-vb2pr 1/1 Running 0 8m33s
4. View console
If Pod Running normally , Check the port of the console with the following command ( The default is 30880):
kubectl get svc/ks-console -n kubesphere-system
[[email protected] ~]# kubectl get svc/ks-console -n kubesphere-system
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
ks-console NodePort 10.10.3.219 <none> 80:30880/TCP 6h59m
5. visit Web Console
Make sure that the port... Is open in the security group 30880, And pass NodePort (IP:30880) Use default account and password (admin/[email protected]) visit Web Console .
http://192.168.1.28:30880


边栏推荐
- There is no Chinese prompt below when inputting text in win10 Microsoft Pinyin input method
- BasicVSR++: Improving Video Super-Resolutionwith Enhanced Propagation and Alignment
- Redis interview question set
- 电子协会 C语言 1级 34 、分段函数
- tars源码分析之5
- 【Kubernetes系列】Kubernetes 上安装 KubeSphere
- Latex中的单引号,双引号如何输入?
- Tar source code analysis Part 3
- Review of enterprise security incidents: how can enterprises do a good job in preventing source code leakage?
- Cervical vertebra, beriberi
猜你喜欢

com. alibaba. nacos. api. exception. NacosException

【GF(q)+LDPC】基于二值图GF(q)域的规则LDPC编译码设计与matlab仿真

Status of the thread

How to share the source code anti disclosure scheme

Centos8 install mysql 7 unable to start up

Cell reports: Wei Fuwen group of the Institute of zoology, Chinese Academy of Sciences analyzes the function of seasonal changes in the intestinal flora of giant pandas

【森城市】GIS数据漫谈(一)

There is no Chinese prompt below when inputting text in win10 Microsoft Pinyin input method

selenium IDE插件下载安装使用教程

leetcode825. Age appropriate friends
随机推荐
Redis interview question set
tars源码分析之1
Data double write consistency between redis and MySQL
大厂技术专家:架构设计中常用的思维模型
Knowledge payment applet dream vending machine V2
电子协会 C语言 1级 35 、银行利息
How to input single quotation marks and double quotation marks in latex?
Novel website program source code that can be automatically collected
centos8安装mysql.7 无法开机启动
Tar source code analysis 4
Enter the year, month, and determine the number of days
notepad++如何统计单词数量
图的底部问题
Selection (023) - what are the three stages of event propagation?
JS common time processing functions
Chapter 1 programming problems
Redis - detailed explanation of cache avalanche, cache penetration and cache breakdown
Selection (022) - what is the output of the following code?
Vulhub vulnerability recurrence 76_ XXL-JOB
kubernetes集群之Label管理