I can’t find documentation on what the rancher v2 CLI up
command is used for. I’ve seen references to using Kubernetes yaml files but that doesn’t seem to do anything:
$ cat secret.yaml
apiVersion: v1
kind: Secret
metadata:
name: mysecret
type: Opaque
stringData:
username: oliver
password: P@ssw0rd
$ rancher up -f secret.yaml
$ rancher inspect --type secret mysecret
FATA[0002] Not found: mysecret
The --help
command doesn’t help much as it just tells me to pass in “a compose file” but it seems like docker-compose files aren’t supported:
$ rancher up --help
apply compose config
Usage:
rancher up [OPTIONS] [arg...]
Options:
--file value, -f value The location of compose config file
- What type of file should I be using?
- Can someone provide an example file?
- Are there args expected for up? What would an arg be used for?
- More generally, how can we improve the command line documentation so it’s clear what sort of file is expected?