Skip to main content
Version: Next 🚧

Hauler Content - Files

Hauler Command Line for Files​

hauler store add file <file> --name <name>

Example Commands for Files​

# fetch remote file
hauler store add file https://get.rke2.io

# fetch local file and assign new name
hauler store add file path/to/local/file.txt --name local-file.txt

Hauler Manifest for Files​

hauler-file-manifest.yaml
apiVersion: content.hauler.cattle.io/v1alpha1
kind: Files
metadata:
name: hauler-content-files-example
spec:
files:
- path: <file>
name: <name>

Example Manifest for Files​

hauler-file-manifest.yaml
apiVersion: content.hauler.cattle.io/v1alpha1
kind: Files
metadata:
name: hauler-content-files-example
spec:
files:
# fetch remote file
- path: https://get.rke2.io
# fetch remote file and assign new name
- path: https://get.rke2.io
name: install.sh
# fetch local file
- path: path/to/local/file.txt
# fetch local file and assign new name
- path: path/to/local/file.txt
name: local-file.txt