sealos icon indicating copy to clipboard operation
sealos copied to clipboard

Feature: sealos run --hostname-prefix=node-xxx

Open weironz opened this issue 3 years ago • 1 comments

Which command or component

sealos run --hostname-prefix=node-xxx

Detailed description of the feature Now the only thing must manual do is configure each node hostname, so is it possible configure hostname auto?

If you have solution,please describe it

sealos run --hostname-prefix=node-xxx
sealos run --hostname-prefix=kube-node00-*

and sealos will auto set each node hostname with node-1、node-2 or kube-node001、kube-node002

weironz avatar Aug 01 '22 13:08 weironz

this is a reasonable requirement,However, we can solve it through the plug-in mechanism without adding parameters to the command line.

Like:

apiVersion: plugin.sealos.io/v1
kind: Plugin
metadata:
  name: hostname-plugin
spec:
  type: HOSTNAME
  rules: kube-node00-*

Then copy it into the image, or add it into Clusterfile.

Or apply it sealos apply -f hostname-plugin.yaml

fanux avatar Aug 02 '22 07:08 fanux

when it will support ?

weironz avatar Jan 07 '23 09:01 weironz