Upload Kubernetes manifests from the local filesystem, creating a new version of the application that can be deployed.
When you have a copy of an application that was created with kots pull
or kots download
, you can upload it back to the Admin Console using the kots upload
command.
kubectl kots upload [source] [flags]
[source]
with a directory containing the manifests of your KOTS application (required).[flags]
according to the table belowThis command supports all global flags and also:
Flag | Type | Description |
---|---|---|
-h, --help |
help for upload | |
--name |
string | the name of the kotsadm application to create |
-n, --namespace |
string | the namespace to upload to (default "default" ) |
--slug |
string | the application slug to use. if not present, a new one will be created |
--upstream-uri |
string | the upstream uri that can be used to check for updates |
Note: Any plainText
values in the upstream/userdata/config.yaml
file will be re-encrypted using the application cipher automatically, if the matching config item is a password type.
If both an encrypted and plainText value is provided on a single item, the plainText value will overwrite the encrypted value, if they differ.
kubectl kots upload ./manifests --name kots-sentry --namespace kots-sentry --slug kots-sentry --upstream-uri kots-sentry/unstable