aws cli安装,aws s3使用教程

准备工作1.aws linux 2 4c8g一台(或者Ubuntu20.04LTS也可以,这两个版本试过)2.域名一个3.选择版本,根据支持矩阵,这里我们选择v

准备工作

1.aws linux 2 4c8g(或者Ubuntu20.04LTS也可以,这两个版本我都试过了)
2. 一个域名
3.根据支持矩阵,此处选择v1.25.9-k3s1,启动器面板选择2.7.3。

开始安装

1.安装k3s

卷曲-sfL https://get.k3s.io INSTALL_K3S_VERSION=v1.25.9+k3s1 sh –
[root@go02 ec2-user]#curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=v1.25.9+k3s1 sh -[INFO] 使用v1.25.9+k3s1 作为版本[INFO] hash https://github.com/下载k3s-io /k3s/releases/download/v1.25.9+k3s1/sha256sum-amd64.txt[信息] 二进制下载https://github.com/k3s-io/k3s/releases/download/v1.25.9+k3s1/k3s [信息] 验证二进制下载[INFO] 在/usr/local/bin/k3s 中安装k3s [INFO] 寻找可用的k3s-selinux 版本[INFO] 创建/usr/local/bin/kubectl 到k3s 的符号链接[INFO] 创建/usr/local/bin /crictl 到k3s 的符号链接[INFO] /usr/local/到k3s 创建bin/ctr 符号链接[INFO] 创建killall 脚本/usr/local/bin/k3s-killall.sh[INFO] 创建卸载脚本/usr/local /bin/k3s-uninstall.sh[INFO] env: 创建环境文件/etc/systemd/system/k3s.service.env[INFO] 创建systemd: 服务文件/etc/systemd/system/k3s.service[INFO] 创建符号来自systemd: /enable k3s 单元的链接如果您从/etc/systemd/system/multi-user.target.wants/k3s.service 启动/etc/systemd/system/k3s.service.[INFO] systemd: k3s,您将看到此内容界面提示成功

2.将/usr/local/bin加入环境变量

vim /etc/profile
导出路径=/usr/local/bin:$PATH
源/etc/profile

3.安装helm

cd /usr/local/bin
wget https://get.helm.sh/helm-v3.12.0-linux-amd64.tar.gz
tar -zxvf helm-v3.12.0-linux-amd64.tar.gz
mv linux-amd64/helm.
添加和更新图形库
将Jetstack https://charts.jetstack.io 添加到Helm 存储库
添加Helm 存储库rancher-stable https://releases.rancher.com/server-charts/stable
更新helm 存储库

4.安装cert-manager

[root@go02 bin]# helm install cert-manager Jetstack/cert-manager –namespace cert-manager –create-namespace –version v1.12.0NAME: cert-managerLAST DEPLOYED: 星期四5 月18 日02:35:17 2023NAMESPACE33 360 身份验证- managerSTATUS: 已部署REVISION: 1TEST SUITE: 无NOTES:cert-manager v1.12.0 已成功部署!要开始颁发证书,您需要设置ClusterIssueror 颁发者资源(例如,“letsencrypt-staging”颁发者)。更多信息有关不同类型的颁发者以及如何配置它们的信息,请参阅文档:https://cert-manager.io/docs/configuration/配置cert-manager 以自动为Ingress 资源提供证书。有关说明,请参阅ingress-shim。 document:https://cert -manager.io/docs/usage/ingress/注意:如果由于网络错误而无法使用,您可以通过再次运行该命令来替换安装以升级。示例: helm Upgrade cert-manager Jetstack/cert-manager –namespace cert-manager –create-namespace –version v1.12.0

5.安装rancher2.7.3

您必须在安装之前创建命名空间。
kubectl 创建命名空间horse-system
[root@go02 ~]# helm install rancher rancher-stable/rancher –namespace horse-system –set hostname=rancher.test.hxdao.cn –set global.cattle.psp.enabled=false –setplicas=1 –set bootstrapPassword=jshebuebyxg45h4NAME: rancherLAST DEPLOYED: Thu May 18 06:51:00 2023NAMESPACE: horse-systemSTATUS:ippedREVISION: 1TEST SUITE: NoneNOTES:Rancher Server Note 3 3360 Rancher 可能需要几分钟才能完全初始化。等待证书颁发、容器启动、Ingress启动。将显示规则。查看https://rancher.com/docs/上的文档。如果您在安装过程中提供了自己的引导密码,请访问https://rancher.test.hxdao.cn 开始。如果这是您第一次安装Rancher,请立即开始。运行此命令并单击URL 将生成:““echo https://rancher。xxxxx

.com/dashboard/?setup=$(kubectl get Secret –namespace horse-system bootstrap-secret -o go-template=\'{{.data.bootstrapPassword|base64decode}}\’)“`仅获取引导密码单独执行此操作: run:“`kubectl get Secret –namespacecattle-system bootstrap-secret -o go-template=\'{{.data.bootstrapPassword|base64decode}}{{ \’\\n\’ }}\’“ “`容器环快乐!

报错1:

[root@go02 bin]# helm install rancher rancher-stable/rancher \\ –namespace horse-system \\ –set hostname=rancher.

原创文章,作者:小条,如若转载,请注明出处:https://www.sudun.com/ask/83492.html

(0)
小条的头像小条
上一篇 2024年5月31日 下午11:34
下一篇 2024年5月31日 下午11:34

相关推荐

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注