首页 > 其他分享 >Helm Deploy Online Rancher v2.9.1

Helm Deploy Online Rancher v2.9.1

时间:2024-09-07 15:52:40浏览次数:7  
标签:kubectl get Online system Rancher Running cattle Helm rancher


Helm Deploy Online Rancher v2.9.1_rancher


文章目录

  • 准备
  • 安装
  • 查看
  • 下载


准备

$ kubectl get node
NAME            STATUS   ROLES           AGE   VERSION
kube-master01   Ready    control-plane   19d   v1.29.5
kube-node01     Ready    <none>          19d   v1.29.5
kube-node02     Ready    <none>          19d   v1.29.5
kube-node03     Ready    <none>          19d   v1.29.5
kube-node04     Ready    <none>          19d   v1.29.5

$ kubectl get pod -n cert-manager
NAME                                     READY   STATUS    RESTARTS      AGE
cert-manager-6fd987499c-6mkkx            1/1     Running   1 (19h ago)   19d
cert-manager-cainjector-5b94bd6f-8phtm   1/1     Running   2 (19h ago)   19d
cert-manager-webhook-575479ff47-7zbzq    1/1     Running   2 (19h ago)   19d

安装

helm install rancher rancher-latest/rancher  \
    --version=v2.9.1 \
    --namespace cattle-system \
    --create-namespace \
    --set hostname=rancher.ghostwritten.com \
    --set certmanager.version=1.15.2 \
    --set useBundledSystemChart=true \
    --set bootstrapPassword=admin

查看

for i in `kubectl get ns |grep cattle | awk '{print $1}'` ;do kubectl get pod -n $i ;done

或者

$ kubectl get pod -A
NAMESPACE                         NAME                                                         READY   STATUS      RESTARTS         AGE
cattle-fleet-local-system         fleet-agent-0                                                2/2     Running     0                5m21s
cattle-fleet-system               fleet-controller-7b9c4cc46b-nt6zp                            3/3     Running     0                5m52s
cattle-fleet-system               gitjob-7fd56d7b75-4vhk7                                      1/1     Running     0                5m52s
cattle-provisioning-capi-system   capi-controller-manager-5967c7487f-mfshc                     1/1     Running     0                4m5s
cattle-system                     helm-operation-mcrcl                                         0/2     Completed   0                3m36s
cattle-system                     helm-operation-szb99                                         0/2     Completed   0                6m22s
cattle-system                     helm-operation-vt242                                         0/2     Completed   0                6m58s
cattle-system                     helm-operation-xl5z7                                         0/2     Completed   0                5m19s
cattle-system                     helm-operation-xv797                                         0/2     Completed   0                4m10s
cattle-system                     rancher-689b74bc98-9cfw2                                     1/1     Running     0                11m
cattle-system                     rancher-689b74bc98-v98tj                                     1/1     Running     0                11m
cattle-system                     rancher-689b74bc98-zxp6z                                     1/1     Running     0                11m
cattle-system                     rancher-webhook-698d85dfcc-qfn4d                             1/1     Running     0                4m45s

下载

下载 charts

helm repo add rancher-latest https://releases.rancher.com/server-charts/latest
helm repo update
helm fetch rancher-latest/rancher --version=v2.9.1

下载部署镜像,下载可能用到的镜像,请参考这里

for i in `kubectl get ns |grep cattle | awk '{print $1}'` ;do kubectl get pod -n $i -oyaml |grep 'image:' | awk '{print $2}' | sort -r | uniq;done 
rancher/fleet-agent:v0.10.1
rancher/fleet:v0.10.1
rancher/mirrored-cluster-api-controller:v1.7.3
rancher/shell:v0.2.1
rancher/rancher-webhook:v0.5.1
rancher/rancher:v2.9.1
rancher/rancher-agent:v2.9.1
rancher/kubectl:v1.29.2

注册的集群需要拉取哪些镜像

$ for i in `kubectl get ns |grep cattle | awk '{print $1}'` ;do kubectl get pod -n $i -oyaml |grep image: | awk '{print $2}' | sort -r | uniq;done
rancher/fleet-agent:v0.10.1
rancher/shell:v0.2.1
rancher/rancher-webhook:v0.5.1
rancher/rancher-agent:v2.9.1


标签:kubectl,get,Online,system,Rancher,Running,cattle,Helm,rancher
From: https://blog.51cto.com/ghostwritten/11945194

相关文章

  • uninstall rancher【卸载 rancher】
    yum-yinstallgitgitclonehttps://github.com/rancher/rancher-cleanup.gitcdrancher-cleanupkubectlcreate-fdeploy/rancher-cleanup.yamlkubectl-nkube-systemlogs-ljob-name=cleanup-job-fkubectlcreate-fdeploy/verify.yamlkubectl-nkube-......
  • 浏览器串口助手插件,web版本串口调试助手浏览器插件 Web Serial Online 发布
    WebSerialOnline:串口调试的新时代在数字化不断进步的今天,开发者和工程师面对单片机如ESP8266、ESP32以及RS485设备的调试任务时,往往需要便捷而高效的工具。我们最近推出的浏览器插件——WebSerialOnline,旨在简化这一流程,提供一个无缝且直观的解决方案。即插即用的高效工具......
  • helm学习第四篇-微服务组件的加入
    微服务的组件也放进去—向外扩张要将Nacos服务添加到你已经包含了SpringBoot、Redis、MySQL和RocketMQ的HelmChart中,你可以按照以下步骤操作:注意!!:nacos好像只有helm文件的github仓库,没有helm的包地址仓库。所以一会思路:找到nacos的github仓库:nacos仓库......
  • helm-增加微服务组件进去
    微服务的组件也放进去—向外扩张要将Nacos服务添加到你已经包含了SpringBoot、Redis、MySQL和RocketMQ的HelmChart中,你可以按照以下步骤操作:注意!!:nacos好像只有helm文件的github仓库,没有helm的包地址仓库。所以一会思路:找到nacos的github仓库:nacos仓库......
  • 解决rancher部署k8s集群问题
    一.问题概述国内网络使用docker部署,local集群会报错,并在创建rke2自定义集群时不成功,会卡住;二.问题分析这个问题主要是由于在使用dockerrun命令启动Rancher容器时,错误地映射了数据目录/var/lib/rancher到宿主机所导致的。下面是详细的问题分析和解决方案整理:1.内置镜像的tar......
  • helm安装mysql
     环境:3节点的k8s集群 前提条件:配置好nfs 1.下载镜像获取配置文件1.#拉取mysqlhelmcharts到本地目录[root@master~]#cd~[root@master~]#helmpullstable/mysql--untar#修改定义配置即可[root@master~]#cdmysql[root@master~]#vimvalues.yaml修改镜像......
  • OpenShift 与 Rancher
    ......
  • helm原理及实践
    目录为什么用HelmHelm是什么简介设计目标架构核心概念如何使用客户端命令使用为什么用Helm它使Kubernetes应用程序的配置、部署和维护变得更加简单、可控和可重复。优势描述模板化配置Helm将应用程序的配置参数化,并使用模板引擎将这些参数嵌入到配置文件中。这使得......
  • rancher 篇
    rancher磁盘负载警告问题原因:在查看pod运行状态时,发现有的pod的状态是Evicted,通过describe去查看发现了Thenodehadcondition:[DiskPressure].的报错原因是kubelet检测到本地磁盘使用率超过了85%,这是kubelet的默认配置查看根目录下(/)使用率是否超过85%。......
  • Free Online 1080P Youtube Video Downloader All In One
    FreeOnline1080PYoutubeVideoDownloaderAllInOne免费在线1080PYoutube视频下载器https://yt5s.io/en93https://yt5s.biz/enxj100/demosIELTS雅思https://www.youtube.com/watch?v=GSnWFA3qnAg(......