Skip to content

rune create

create is the imperative counterpart to cast. Use it when you don’t want to write a YAML file for a one-off resource.

Terminal window
rune create namespace <name>
rune create secret <name> [--from-literal=k=v]... [--from-file=k=path]...
rune create config <name> [--from-literal=k=v]... [--from-file=k=path]...
Terminal window
rune create namespace prod
rune create namespace prod --description="Production workloads"
Terminal window
# Literals
rune create secret db-credentials \
--from-literal=username=admin \
--from-literal=password=hunter2
# From files
rune create secret tls-cert \
--from-file=tls.crt=./certs/server.crt \
--from-file=tls.key=./certs/server.key
# Replace existing
rune create secret db-credentials --from-literal=password=new-pass --replace
Terminal window
# Literals
rune create config app-settings \
--from-literal=log-level=info \
--from-literal=feature-x=enabled
# From files
rune create config nginx-config \
--from-file=nginx.conf=./nginx.conf
FlagNotes
-n, --namespaceTarget namespace.
--from-literal=k=vInline key/value (repeatable).
--from-file=k=pathRead value from file (repeatable).
--replaceOverwrite if it exists.

For anything you’d want to commit to git — most config — write a YAML file and cast it. create is for ad-hoc work, prototyping, and CI bootstraps.