Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using add command to instead join, join command exec on node #1164

Open
fanux opened this issue Feb 18, 2022 · 3 comments
Open

Using add command to instead join, join command exec on node #1164

fanux opened this issue Feb 18, 2022 · 3 comments
Labels
command sealer terminal command related kind/feature Category issues or PRs related to feature request

Comments

@fanux
Copy link
Collaborator

fanux commented Feb 18, 2022

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:

  1. On the master to get the join token
sealer join token
  1. 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
@fanux fanux added the kind/feature Category issues or PRs related to feature request label Feb 18, 2022
@fanux
Copy link
Collaborator Author

fanux commented Feb 18, 2022

We need to save Clusterfile to configmap now, and get configmap using discovery-token

@fanux
Copy link
Collaborator Author

fanux commented Feb 24, 2022

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 ]

@allencloud allencloud added the command sealer terminal command related label May 2, 2022
@VinceCui
Copy link
Collaborator

I need this feat!
I need this feat!
I need this feat!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
command sealer terminal command related kind/feature Category issues or PRs related to feature request
Projects
None yet
Development

No branches or pull requests

3 participants