Init Command
Initialize
init
command
init
commandDescription: Initialize a one time access token
Parameters:
Sub-command to run
format: ksm init <sub-command>
Sub-Commands:
Sub-Command | Description |
| Return the redeemed token as base64 encoded JSON |
| Return the redeemed token as Kubernetes secret script. |
default
Initialize a one time access token and create a configuration profile for use with external integrations like Github Actions, Terraform and others. The output of the configuration can be generated as either base64 encoded JSON (default), or k8s format. Other KSM Developer SDKs, and applications, will understand configurations in this format.
ksm init default <TOKEN>
optional parameters:
--plain
do not base64 encode the configuration. Return plain JSON.-h, --hostname
change the hostname--skip-ssl-verify
- Do not verify the remote SSL certificate.
k8s
Initialize a one time access token into a Kubernetes secret script.
ksm init k8s <TOKEN>
optional parameters:
--name, -n
Name of the Kubernetes secret. Default is ksm-config.--namespace, --ns
Name of the Kubernetes namespace. Default is default.--apply
Automatically use kubectl to apply the secret. You will not see the secret script.--immutable, -i
Make the secret immutable. Requires Kubernetes >= 1.21-h, --hostname
change the hostname--skip-ssl-verify
- Do not verify the remote SSL certificate.
Last updated