Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@lucab
Created August 7, 2017 13:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lucab/1a45f43b3d75a89d9988f7b4af035c98 to your computer and use it in GitHub Desktop.
Save lucab/1a45f43b3d75a89d9988f7b4af035c98 to your computer and use it in GitHub Desktop.
[k8s/jobs] torcx - list profiles
apiVersion: batch/v1
kind: Job
metadata:
name: "torcx-userland"
spec:
template:
metadata:
name: "torcx-userland"
spec:
restartPolicy: Never
containers:
- name: "torcx-userland"
image: 'quay.io/lucab/torcx-userland:0.1.0'
command: ["/usr/sbin/torcx"]
args: ["profile", "list"]
volumeMounts:
- mountPath: /usr/share/torcx/
readOnly: true
name: torcx-vendor-dir
- mountPath: /run/metadata/
readOnly: true
name: metadata-dir
- mountPath: /etc/torcx/
readOnly: true
name: torcx-conf-dir
- mountPath: /run/torcx
readOnly: true
name: torcx-rundir
- mountPath: /usr/share/coreos/os-release
readOnly: true
name: coreos-os-release
volumes:
- name: metadata-dir
hostPath:
path: /run/metadata/
- name: torcx-conf-dir
hostPath:
path: /etc/torcx/
- name: torcx-vendor-dir
hostPath:
path: /usr/share/torcx/
- name: torcx-rundir
hostPath:
path: /run/torcx
- name: coreos-os-release
hostPath:
path: /usr/share/coreos/os-release
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment