提供一个k3s安装方式-完整的yaml方便部署
- Dominant language
- Java
- Stars
- 2k
- Forks
- 430
- PR merge metrics
- No merged PRs in 30d
Description
#公有云申请一台8核心32G的centos系统机器(按量计算)(CentOS Linux release 7.6)
#开一个终端安装K3s 2min
curl -sfL http://rancher-mirror.cnrancher.com/k3s/k3s-install.sh | INSTALL_K3S_MIRROR=cn sh
#k3s默认的STORAGE_CLASS: "local-path"
#域名是sreworks.cypggs.com,可以把sed第二个sreworks.cypggs.com替换成自己的
wget https://gitee.com/qcypggs/casetemp/raw/master/sreworks.yaml && sed "s/sreworks.cypggs.com/sreworks.cypggs.com/g" sreworks.yaml |kubectl apply -f - --record=true
#等待10几20分钟,看看有没有ing创建
kubectl get ing -A
#配置个host 查看公网ip
curl ip.cip.cc
#window在这里 C:\Windows\System32\drivers\etc\hosts
81.71.164.175 sreworks.cypggs.com
81.71.164.175 vvp.cypggs.com
#访问 http://sreworks.cypggs.com/#/desktop/portal
#账密 admin 12345678
#最后记得销毁云资源,云一个小时用了我2块钱左右
Contributor guide
Research direction
Review the k3s-install.sh command, the referenced sreworks.yaml, and the kubectl deployment steps in the issue. Verify that the documented CentOS and k3s setup still produces the expected ingresses and access instructions. Done means a newcomer can follow the steps to deploy SREWorks successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- centos, kubernetes
- Domain
- cloud, devops, infrastructure
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100