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

k8s 集群安装

安装rockylinux

https://www.jianshu.com/p/a5fe20318b8e
https://www.cnblogs.com/haoee/p/18290506

配置VirtualBox双网卡

https://www.cnblogs.com/ShineLeBlog/p/17580311.html
https://zhuanlan.zhihu.com/p/341328334
https://blog.csdn.net/qq_36544785/article/details/135352652

VirtualBox-Linux系统安装增强功能

https://www.cnblogs.com/liu-ke/p/5007840.html

yum install -y kernel-headers kernel-devel gcc* make
yum update -y
mount /dev/cdrom /mnt/cdrom
cd /mnt/cdrom
./VBoxLinuxAdditions.run

k8s 安装

https://www.cnblogs.com/eilen6316/p/18449627
https://blog.csdn.net/m0_51510236/article/details/134142834
https://devpress.csdn.net/k8s/66c981447648734c1b1675d7.html
https://developer.aliyun.com/article/1399779
https://blog.csdn.net/m0_51964671/article/details/135256434
https://developer.aliyun.com/article/1478417

1、yum install -y bash-completion
2、vi ~/.bashrc 添加source <(kubectl completion bash)
3、source ~/.bashrc

远程连接工具WindTerm_2.6.1

tls: failed to verify certificate: x509: certificate signed by unknown authority问题加-k参数

ctr -n=k8s.io images pull registry.aliyuncs.com/google_containers/kube-apiserver:v1.28.0 -k
ctr -n=k8s.io images pull registry.aliyuncs.com/google_containers/kube-controller-manager:v1.28.0 -k
ctr -n=k8s.io images pull registry.aliyuncs.com/google_containers/kube-scheduler:v1.28.0 -k
ctr -n=k8s.io images pull registry.aliyuncs.com/google_containers/kube-proxy:v1.28.0 -k
ctr -n=k8s.io images pull registry.aliyuncs.com/google_containers/pause:3.9 -k
ctr -n=k8s.io images pull registry.aliyuncs.com/google_containers/etcd:3.5.9-0 -k
ctr -n=k8s.io images pull registry.aliyuncs.com/google_containers/coredns:v1.10.1 -k

kubeadm.yaml

apiVersion: kubeadm.k8s.io/v1beta3
bootstrapTokens:
- groups:
  - system:bootstrappers:kubeadm:default-node-token
  token: abcdef.0123456789abcdef
  ttl: 24h0m0s
  usages:
  - signing
  - authentication
kind: InitConfiguration
#localAPIEndpoint:
#  advertiseAddress: 1.2.3.4
#  bindPort: 6443
nodeRegistration:
  criSocket: unix:///run/containerd/containerd.sock
  imagePullPolicy: IfNotPresent
#  name: node
  taints: null
---
apiServer:
  timeoutForControlPlane: 4m0s
apiVersion: kubeadm.k8s.io/v1beta3
certificatesDir: /etc/kubernetes/pki
clusterName: kubernetes
controllerManager: {}
dns: {}
etcd:
  local:
    dataDir: /var/lib/etcd
imageRepository: registry.aliyuncs.com/google_containers
kind: ClusterConfiguration
kubernetesVersion: 1.28.0
controlPlaneEndpoint: "192.168.56.116:6443"
networking:
  dnsDomain: cluster.local
  serviceSubnet: 10.96.0.0/12
  podSubnet: 10.244.0.0/12
scheduler: {}
---
apiVersion: kubeproxy.config.k8s.io/v1alpha1
kind: KubeProxyConfiguration
mode: ipvs
---
apiVersion: kubelet.config.k8s.io/v1beta1
kind: KubeletConfiguration
cgroupDriver: systemd
ctr image pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/calico/cni:v3.25.0 -y
ctr image pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/calico/pod2daemon-flexvol:v3.25.0 -y
ctr image pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/calico/node:v3.25.0 -y
ctr image pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/calico/kube-controllers:v3.25.0 -y
ctr image pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/calico/typha:v3.25.0 -y

http://www.kler.cn/a/404700.html

相关文章:

  • shell--第一次作业
  • buuoj WEB做题笔记
  • .NET9 - 新功能体验(一)
  • Python Tutor网站调试利器
  • Python 绘图工具详解:使用 Matplotlib、Seaborn 和 Pyecharts 绘制散点图
  • sql server 查看索引的使用
  • RTC QoS方法十三.(ReedSolomonFEC简介)
  • 音频信号采集前端电路分析
  • android版本ijkplayer2024编译笔记
  • 开源模型应用落地-qwen模型小试-调用Qwen2-VL-7B-Instruct-更清晰地看世界-vLLM+Docker(七)
  • CSS3中的响应式布局(媒体查询)之媒体类型、媒体特性、运算符
  • list =和addAll在List<实体类>数组的应用
  • 刘艳兵-DBA041-使用常用的数据泵功能导出时,主要需要关注以下哪些步骤?
  • Kafka 2.8 源码导读
  • 038集——quadtree(CAD—C#二次开发入门)
  • Python操作neo4j库py2neo使用(一)
  • Qt模块化编程:创建pri文件,写入函数并调用模块
  • Slate文档编辑器-WrapNode数据结构与操作变换
  • 网络安全核心目标CIA
  • Kingfisher 下载ENA、NCBI SRA、AWS 和 Google Cloud)序列数据和元数据
  • 游戏行业趋势:“AI、出海、IP”大热下,如何提升竞争力?
  • Vue:后端返回二进制文件,前端如何实现浏览器自动下载?
  • 零基础学Python之数据结构 -- 01篇
  • 解决docker报Error response from daemon Get httpsregistry-1.docker.iov2错误
  • 【WSL+Kali】安装 Win-KeX 以启动 Kali Linux 完整桌面环境
  • 如何在 PyCharm 中配置 HTTP 代理以确保网络连接的顺畅性