kubeadm-1.6.0
2 minute read
KOSI Plugin kubeadm Version 1.6.0
Summary
This plugin can be used to execute kubeadm commands.
Keys
Key | Description | |
---|---|---|
action | - | Action performed when upgrade is used as an operation. |
kubeadmVersion | - | Any offical verb supported by Kubernetes is allowed when you try the operation “config” or “can-i” |
outputVar | Mandatory | Save the output of the executed command in the offered variable. |
sudo | - | Can be true or false. If it is true the Plugin will be executet with sudo privileges. |
sudoPassword | - | If you use sudo, sudoPassword will be mandatory. |
phase | - | Phase which will be initialized when using init phase as an operation. |
token | - | Save the token of the token create command in the offered variable. |
operation | - | The operations shown above are currently supported when using the kubeadm plugin. Depending on the operation the following inputs are required: |
- Operation “version” requires kubeadmVersion to save the output kubeadmVersion. It’s recommended to use the flag
-o short
to get only the Version as output. - Operation “init phase” requires a phase. E.g certs or kubeconfig.
- Operation “token create” requires a token to save the created token into a variable.
- Operation “upgrade” requires an action. E.g plan oder apply.
action
Action performed when upgrade is used as an operation.
kubeadmVersion
Any offical verb supported by Kubernetes is allowed when you try the operation “config” or “can-i”
operation
The operations shown above are currently supported when using the kubeadm plugin. Depending on the operation the following inputs are required:
- Operation “version” requires kubeadmVersion to save the output kubeadmVersion. It’s recommended to use the flag
-o short
to get only the Version as output. - Operation “init phase” requires a phase. E.g certs or kubeconfig.
- Operation “token create” requires a token to save the created token into a variable.
- Operation “upgrade” requires an action. E.g plan oder apply.
Example
languageversion = "1.0.0";
apiversion = "kubernative/kubeops/kosi/user/v4";
name = "kosi-example-packagev3";
description = "kosi-example-package";
version = "0.1.0";
docs = "docs.tgz";
logo = "logo.png";
files =
{
input="template.yaml";
}
containers =
{
example=["docker.io", "nginx", "latest"];
}
install
{
kubeadm(
operation="version"/"reset"/"init"/"init phase"/"token create"/"upgrade";
kubeadmVersion="version";
phase="kubelet-start"/"certs"/"kubeconfig"/"control-plane"/"...";
action="plan"/"apply"/"node"/"apply v1.22.x"/"...";
flag="-f PathToYAML -n kube-system -o wide"/"...";
outputVar: "outputStorage";
token="kubeadmToken";
sudo="true";
sudoPassword="Drowssap");
}