sealer
sealer copied to clipboard
Using add command to instead join, join command exec on node
If you want to add node or master on master:
sealer add --nodes x.x.x.x --masters x.x.x.x
If you join node or master on new server:
- On the master to get the join token
sealer join token
- On node, to join it
sealer join --discovery-token abcdef.1234567890abcdef \
--discovery-token-ca-cert-hash sha256:1234..cdef --control-plane 1.2.3.4:6443
You can use a different CloudImage on node, for example, you master is x86 but node is ARM:
sealer join --discovery-token abcdef.1234567890abcdef \
--discovery-token-ca-cert-hash sha256:1234..cdef \
--control-plane 1.2.3.4:6443 --image kubernetes-arm:1.19.8
We need to save Clusterfile to configmap now, and get configmap using discovery-token
Multi arch in same cluster, using apply to init cluster. Sealer will auto-detect the arch.
apiVersion: sealer.cloud/v2
kind: Cluster
metadata:
name: my-cluster
spec:
image: kubernetes:v1.19.8
ssh:
passwd:
pk: xxx
pkPasswd: xxx
user: root
port: 2222
hosts:
- ips: [ 192.168.0.2 ] # this is an ARM host
roles: [ master ]
- ips: [ 192.168.0.3 ]
roles: [ node,db ]
I need this feat! I need this feat! I need this feat!