Add RKE bootstrapper
innobead opened this issue · 1 comments
innobead commented
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is.
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
innobead commented
Single node
❯ export `kubefire cluster env demo-rke`
❯ kubectl get nodes
NAME STATUS ROLES AGE VERSION
10.62.0.15 Ready controlplane,etcd,worker 80s v1.19.4
Multiple nodes
❯ kubectl get nodes
NAME STATUS ROLES AGE VERSION
10.62.0.16 Ready controlplane,etcd 59s v1.19.4
10.62.0.17 Ready worker 58s v1.19.4
10.62.0.18 Ready worker 58s v1.19.4
Show info
❯ kubefire info -b
KUBEADM K3S RKE
v1.19.4,v1.18.12,v1.17.14 v1.19.4+k3s1,v1.18.12+k3s1,v1.17.14+k3s2,v1.16.15+k3s1 v1.2.3 (v1.19.4-rancher1-1, v1.18.12-rancher1-2, v1.17.14-rancher1-2)
Deploy a specific version
❯ kubefire cluster create demo-rke --bootstrapper=rke --extra-options="kubernetes_version=v1.18.12-rancher1-1"
...
❯ kubectl get nodes
NAME STATUS ROLES AGE VERSION
10.62.0.20 Ready controlplane,etcd,worker 85s v1.18.12
Deploy with the customize RKE cluster.yaml
❯ cat /tmp/cluster.yaml
network:
plugin: calico
❯ kubefire cluster create demo-rke --bootstrapper=rke --extra-options="kubernetes_version=v1.18.12-rancher1-1 cluster_config_file=/tmp/cluster.yaml"
...
INFO[2020-11-23T01:12:18+08:00] time="2020-11-23T01:12:18+08:00" level=info msg="[network] Setting up network plugin: calico"
...
❯ kubectl get pod -n kube-system
NAME READY STATUS RESTARTS AGE
calico-kube-controllers-7fbc6b86cc-xh7mk 0/1 ContainerCreating 0 41s
calico-node-qkzql 0/1 Init:ImagePullBackOff 0 40s
coredns-849545576b-lt229 0/1 ContainerCreating 0 37s
coredns-autoscaler-5dcd676cbd-fr8m7 0/1 ContainerCreating 0 36s
metrics-server-697746ff48-p5lzj 0/1 ContainerCreating 0 32s
rke-coredns-addon-deploy-job-zlrws 0/1 Completed 0 38s
rke-ingress-controller-deploy-job-r4szm 0/1 Completed 0 28s
rke-metrics-addon-deploy-job-qrsfv 0/1 Completed 0 33s
rke-network-plugin-deploy-job-sv9zj 0/1 Completed 0 53s