[关闭]
@zhangyy 2021-02-09T14:34:57.000000Z 字数 854 阅读 154

k8s1.18.15 导入rancher2.5.5

rancher系列



一:环境准备

  1. 系统:centos7.9x64-1
  2. 安装好:k8s1.18.15

  1. kubectl get node

image_1eu2dt08l11har3s1ahh19761rd59.png-61.8kB

二:rancher 安装

2.1 采用docker安装

  1. mkdir -p /data/rancher/rancher
  2. mkdir -p /data/rancher/auditlog
  3. vim racher.sh
  4. ----
  5. docker run -d --privileged --restart=unless-stopped -p 80:80 -p 443:443 -v /data/rancher/rancher:/var/lib/rancher -v /data/rancher/auditlog:/var/log/auditlog --name rancher rancher/rancher:stable
  6. ----
  7. chmod +x rancher.sh
  8. ./rancher.sh

image_1eu2e3lmmu2a7l5qfu1siif5m.png-43kB
image_1eu2ek04ci25fvbhhh8r82f13.png-168.4kB

image_1eu2el61f1raq1vaa16c51oa2ho61t.png-358.1kB


2.2 打开web:

  1. http://192.168.100.13
  2. 设置 ip 用户密码:

image_1eu2entv512r3mgi1hgk1suc1kk2a.png-283.6kB

image_1eu2epkmp1bmb18ch126iolepml37.png-483.5kB

image_1eu2hq9461qsvctts3m1qqt1taj3k.png-210.4kB

image_1eu2hr27511td17ls249j4918d441.png-189.3kB

2.3 将k8s1.18.15 导入 rancher

image_1eu2hseig1p0d3d01mbt1qv21aau4e.png-92.7kB

image_1eu2htaa3f6t18t8kne1oq91v4r4r.png-273.6kB

image_1eu2hu9ro1nui1ssr14kr18su1s5658.png-188.2kB

image_1eu2i3aj01r5242df51i5t1vg85l.png-158kB

image_1eu2i47s01t7b1svobivafh1u2f62.png-425.2kB

  1. kubectl create clusterrolebinding cluster-admin-binding --clusterrole cluster-admin --user admin

image_1eu2ivot41vgo7c2vu411ilo0q8j.png-42.2kB

  1. 下载导入文件
  2. wget https://192.168.100.13/v3/import/fx9lk5sdx647zng7sqqtptk8mpf78q699snsdwkqvrzxhbdhjgvkpf.yaml --no-check-certificate

image_1eu2i6b4rigv14oo1m5kvee1p4f6f.png-249.3kB

  1. kubectl apply -f fx9lk5sdx647zng7sqqtptk8mpf78q699snsdwkqvrzxhbdhjgvkpf.yaml

image_1eu2i8nl83fk1jjl1vk9l0o1u2m6v.png-82.1kB

image_1eu2i9o0fvosm161bdq16hctlj7c.png-99.5kB

image_1eu2ib9tkaeb1moc1e8l10a91di87p.png-220.4kB

image_1eu2ibscfv941bhe1l4u1ht15ll86.png-1597kB

2.3 安装longhorn

image_1eu2jh2aj1q16125at79nh51cgf90.png-190.4kB

image_1eu2jj01j6r4el71paa62s1nkt9d.png-143.7kB

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注