mirror of
https://github.com/kubesphere/kubekey.git
synced 2025-12-25 17:12:50 +00:00
Merge pull request #1901 from LinuxSuRen/feat/initial-module
feat: add an initial stage at the very start cluster creating phase
This commit is contained in:
commit
c879a27f44
|
|
@ -58,13 +58,13 @@ func NewCreateClusterPipeline(runtime *common.KubeRuntime) error {
|
|||
|
||||
m := []module.Module{
|
||||
&precheck.GreetingsModule{},
|
||||
&customscripts.CustomScriptsModule{Phase: "PreInstall", Scripts: runtime.Cluster.System.PreInstall},
|
||||
&precheck.NodePreCheckModule{},
|
||||
&confirm.InstallConfirmModule{},
|
||||
&artifact.UnArchiveModule{Skip: noArtifact},
|
||||
&os.RepositoryModule{Skip: noArtifact || !runtime.Arg.InstallPackages},
|
||||
&binaries.NodeBinariesModule{},
|
||||
&os.ConfigureOSModule{Skip: runtime.Cluster.System.SkipConfigureOS},
|
||||
&customscripts.CustomScriptsModule{Phase: "PreInstall", Scripts: runtime.Cluster.System.PreInstall},
|
||||
&kubernetes.StatusModule{},
|
||||
&container.InstallContainerModule{},
|
||||
&images.CopyImagesToRegistryModule{Skip: skipPushImages},
|
||||
|
|
|
|||
|
|
@ -45,13 +45,13 @@ spec:
|
|||
# Specify additional packages to be installed. The ISO file which is contained in the artifact is required.
|
||||
debs:
|
||||
- nfs-common
|
||||
#preInstall: # Specify custom init shell scripts for each nodes, and execute according to the list order.
|
||||
#preInstall: # Specify custom init shell scripts for each nodes, and execute according to the list order at the first stage.
|
||||
# - name: format and mount disk
|
||||
# bash: /bin/bash -x setup-disk.sh
|
||||
# materials: # scripts can has some dependency materials. those will copy to the node
|
||||
# - ./setup-disk.sh # the script which shell execute need
|
||||
# - xxx # other tools materials need by this script
|
||||
#postInstall: # Specify custom finish clean up shell scripts for each nodes after the kubernetes install.
|
||||
#postInstall: # Specify custom finish clean up shell scripts for each nodes after the Kubernetes install.
|
||||
# - name: clean tmps files
|
||||
# bash: |
|
||||
# rm -fr /tmp/kubekey/*
|
||||
|
|
|
|||
Loading…
Reference in New Issue