Skip to content

Instantly share code, notes, and snippets.

@arkka
Last active August 25, 2016 14:43
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 arkka/b0b1f2a091d3f5e24229f40f72a5a19b to your computer and use it in GitHub Desktop.
Save arkka/b0b1f2a091d3f5e24229f40f72a5a19b to your computer and use it in GitHub Desktop.
Rancher convoy-nfs with dockerized NFS server as storage pool
convoy-nfs-storagepool:
labels:
io.rancher.container.create_agent: 'true'
io.rancher.scheduler.affinity:host_label: nfs-server=true
command:
- storagepool-agent
image: rancher/convoy-agent:v0.9.0
volumes:
- /var/run:/host/var/run
- /run:/host/run
convoy-nfs:
labels:
io.rancher.scheduler.global: 'true'
io.rancher.container.create_agent: 'true'
command:
- volume-agent-nfs
image: rancher/convoy-agent:v0.9.0
pid: host
privileged: true
volumes:
- /lib/modules:/lib/modules:ro
- /proc:/host/proc
- /var/run:/host/var/run
- /run:/host/run
- /etc/docker/plugins:/etc/docker/plugins
nfs:
command:
- /exports
image: cpuguy83/nfs-server
privileged: true
volumes:
- /exports
convoy-nfs-storagepool:
scale: 1
health_check:
port: 10241
interval: 2000
unhealthy_threshold: 3
strategy: recreate
response_timeout: 2000
request_line: GET /healthcheck HTTP/1.0
healthy_threshold: 2
metadata:
mount_dir: /
nfs_server: 10.6.4.20
convoy-nfs:
health_check:
port: 10241
interval: 2000
unhealthy_threshold: 3
strategy: recreate
response_timeout: 2000
request_line: GET /healthcheck HTTP/1.0
healthy_threshold: 2
metadata:
mount_dir: /
nfs_server: 10.6.4.20
mount_opts: proto=tcp,port=2049,nfsvers=4
nfs:
scale: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment