在CentOS9上部署高可用 Kubernetes1.35集群
本篇文章是在 CentOS9系统上安装高可用Kubernetes1.35集群 节点资源配置如下: 主机名 ip 内存 核心 操作系统 master01 192.168.213.41 4g 2 centos9 master02 192.168.213.42 4g 2 centos9 master03 192.168.213.43 4g 2 centos9 worker01 192.168.213.44 10g 4 centos9 worker02 192.168.213.45 10g 4 centos9 高可用vip:192.168.213.40 此篇文章高可用方案为nginx+keepalived,当然其他方案诸如haproxy+keepalived也是可行的,这里不做介绍 开始配置操作: 配置aliyun源(所有节点都需要) tee /etc/yum.repos.d/centos.repo > /dev/null << 'EOF'[baseos]name=CentOS Stream $releas...
使用阿里云ACK集群配置ALB Ingress,实现域名访问
此篇文章主要介绍如何创建阿里云ACK集群,并部署简单的应用,通过域名进行访问 在阿里云控制平台创建ACK集群,负载均衡架构为ALB Ingress 确认完配置,等待创建 所有创建过程结束后,如下图 通过workbench管理集群: 创建测试应用 apiVersion: apps/v1kind: Deploymentmetadata: name: nginx-app namespace: defaultspec: replicas: 1 selector: matchLabels: app: nginx template: metadata: labels: app: nginx spec: containers: - name: nginx image: anolis-registry.cn-zhangjiakou.cr.aliyuncs.com/openanolis/nginx:1.14.1-8.6 ports: - containerPo...
在 CentOS9上安装 Kubernetes1.35集群
各位技术爱好者们,大家好!本文是在 CentOS 9系统上安装 Kubernetes 。在本指南中,将一步步指导你完成集群的启动和运行,从安装到配置,全程无遗漏 先决条件 在开始安装过程之前,请确保您已具备以下先决条件: 至少需要三个节点(一个主节点和两个工作节点),运行系统CentOS 9。 每个节点至少应配备 2GB 内存和 2 个 CPU 核心。 如果没有设置 DNS,则每个节点的配置/etc/hosts文件中配置各个节点的解析 本文是部署教程,所以只设置了master和node两台centos9系统的节点 主机名 ip 内存 核心 操作系统 master 192.168.213.30 16 4 centos9 worker1 192.168.213.31 16 4 centos9 在 CentOS9上安装Kubernetes集群 配置ip master节点 [root@localhost ~]# nmcli connection modify "ens160" ipv4.method manual ipv4.ad...
install k3s on centos9
install k3s on centos9 配置aliyun仓库 tee /etc/yum.repos.d/centos.repo > /dev/null << 'EOF'[baseos]name=CentOS Stream $releasever - BaseOS - mirrors.aliyun.combaseurl=https://mirrors.aliyun.com/centos-stream/9-stream/BaseOS/x86_64/os/gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficialenabled=1[baseos-debuginfo]name=CentOS Stream $releasever - BaseOS Debuginfo - mirrors.aliyun.combaseurl=https://mirrors.aliyun.com/centos-stream/9-stream/BaseOS/x86_64/debug/tree...
install microk8s on centos9
install microk8s on centos9 配置aliyun仓库 tee /etc/yum.repos.d/centos.repo > /dev/null << 'EOF'[baseos]name=CentOS Stream $releasever - BaseOS - mirrors.aliyun.combaseurl=https://mirrors.aliyun.com/centos-stream/9-stream/BaseOS/x86_64/os/gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficialenabled=1[baseos-debuginfo]name=CentOS Stream $releasever - BaseOS Debuginfo - mirrors.aliyun.combaseurl=https://mirrors.aliyun.com/centos-stream/9-stream/BaseOS/x86_64/debug...
