123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348 |
- rancher:
- defaults:
- hostname: {{.HOSTNAME_DEFAULT}}
- network:
- dns:
- nameservers: [8.8.8.8, 8.8.4.4]
- bootstrap:
- state-script:
- image: {{.OS_REPO}}/os-statescript:{{.VERSION}}{{.SUFFIX}}
- labels:
- io.rancher.os.detach: "false"
- io.rancher.os.scope: system
- io.rancher.os.after: udev-bootstrap
- log_driver: json-file
- net: host
- uts: host
- privileged: true
- volumes:
- - /dev:/host/dev
- - /lib/modules:/lib/modules
- - /lib/firmware:/lib/firmware
- - /usr/bin/ros:/usr/bin/ros:ro
- - /usr/share/ros:/usr/share/ros:ro
- udev-bootstrap:
- image: {{.OS_REPO}}/os-udev:{{.VERSION}}{{.SUFFIX}}
- environment:
- - BOOTSTRAP=true
- labels:
- io.rancher.os.detach: "false"
- io.rancher.os.scope: system
- log_driver: json-file
- net: host
- uts: host
- privileged: true
- volumes:
- - /dev:/host/dev
- - /lib/modules:/lib/modules
- - /lib/firmware:/lib/firmware
- autoformat:
- autoformat:
- image: {{.OS_REPO}}/os-autoformat:{{.VERSION}}{{.SUFFIX}}
- labels:
- io.rancher.os.detach: "false"
- io.rancher.os.scope: system
- log_driver: json-file
- net: none
- privileged: true
- udev-autoformat:
- image: {{.OS_REPO}}/os-udev:{{.VERSION}}{{.SUFFIX}}
- labels:
- io.rancher.os.detach: "false"
- io.rancher.os.scope: system
- io.rancher.os.after: autoformat
- log_driver: json-file
- net: host
- uts: host
- privileged: true
- volumes:
- - /dev:/host/dev
- - /lib/modules:/lib/modules
- - /lib/firmware:/lib/firmware
- bootstrap_docker:
- args: [daemon, -s, overlay, -b, none, --restart=false, -g, /var/lib/system-docker,
- -G, root, -H, 'unix:///var/run/system-docker.sock', --userland-proxy=false]
- console: default
- cloud_init:
- datasources:
- - configdrive:/media/config-2
- repositories:
- core:
- url: {{.OS_SERVICES_REPO}}/{{.REPO_VERSION}}{{.SUFFIX}}
- state:
- fstype: auto
- dev: LABEL=RANCHER_STATE
- oem_fstype: auto
- oem_dev: LABEL=RANCHER_OEM
- services:
- {{if eq "amd64" .ARCH -}}
- acpid:
- image: {{.OS_REPO}}/os-acpid:{{.VERSION}}{{.SUFFIX}}
- labels:
- io.rancher.os.scope: system
- net: host
- uts: host
- privileged: true
- volumes_from:
- - command-volumes
- - system-volumes
- {{end -}}
- all-volumes:
- image: {{.OS_REPO}}/os-state:{{.VERSION}}{{.SUFFIX}}
- labels:
- io.rancher.os.createonly: "true"
- io.rancher.os.scope: system
- log_driver: json-file
- net: none
- privileged: true
- read_only: true
- volumes_from:
- - container-data-volumes
- - command-volumes
- - user-volumes
- - system-volumes
- cloud-init:
- image: {{.OS_REPO}}/os-cloudinit:{{.VERSION}}{{.SUFFIX}}
- labels:
- io.rancher.os.detach: "false"
- io.rancher.os.reloadconfig: "true"
- io.rancher.os.scope: system
- io.rancher.os.after: ntp
- net: host
- uts: host
- privileged: true
- volumes_from:
- - command-volumes
- - system-volumes
- cloud-init-pre:
- image: {{.OS_REPO}}/os-cloudinit:{{.VERSION}}{{.SUFFIX}}
- environment:
- - CLOUD_INIT_NETWORK=false
- labels:
- io.rancher.os.detach: "false"
- io.rancher.os.reloadconfig: "true"
- io.rancher.os.scope: system
- io.rancher.os.after: preload-system-images
- net: host
- uts: host
- privileged: true
- volumes_from:
- - command-volumes
- - system-volumes
- command-volumes:
- image: {{.OS_REPO}}/os-state:{{.VERSION}}{{.SUFFIX}}
- labels:
- io.rancher.os.createonly: "true"
- io.rancher.os.scope: system
- log_driver: json-file
- net: none
- privileged: true
- read_only: true
- volumes:
- - /usr/bin/docker-containerd:/usr/bin/docker-containerd.dist:ro
- - /usr/bin/docker-containerd-shim:/usr/bin/docker-containerd-shim.dist:ro
- - /usr/bin/docker-runc:/usr/bin/docker-runc.dist:ro
- - /usr/bin/docker:/usr/bin/docker.dist:ro
- - /usr/bin/ros:/usr/bin/dockerlaunch:ro
- - /usr/bin/ros:/usr/bin/user-docker:ro
- - /usr/bin/ros:/usr/bin/system-docker:ro
- - /usr/bin/ros:/sbin/poweroff:ro
- - /usr/bin/ros:/sbin/reboot:ro
- - /usr/bin/ros:/sbin/halt:ro
- - /usr/bin/ros:/sbin/shutdown:ro
- - /usr/bin/ros:/usr/bin/respawn:ro
- - /usr/bin/ros:/usr/bin/ros:ro
- - /usr/bin/ros:/usr/bin/cloud-init:ro
- - /usr/bin/ros:/usr/sbin/netconf:ro
- - /usr/bin/ros:/usr/sbin/wait-for-docker:ro
- - /usr/bin/ros:/usr/bin/switch-console:ro
- console:
- image: {{.OS_REPO}}/os-console:{{.VERSION}}{{.SUFFIX}}
- labels:
- io.rancher.os.scope: system
- io.rancher.os.after: network
- io.docker.compose.rebuild: always
- io.rancher.os.console: default
- net: host
- uts: host
- pid: host
- ipc: host
- privileged: true
- restart: always
- volumes_from:
- - all-volumes
- volumes:
- - /usr/bin/iptables:/sbin/iptables:ro
- container-data-volumes:
- image: {{.OS_REPO}}/os-state:{{.VERSION}}{{.SUFFIX}}
- labels:
- io.rancher.os.createonly: "true"
- io.rancher.os.scope: system
- log_driver: json-file
- net: none
- privileged: true
- read_only: true
- volumes:
- - /var/lib/docker:/var/lib/docker
- - /var/lib/system-docker:/var/lib/system-docker
- - /var/lib/rkt:/var/lib/rkt
- network-pre:
- image: {{.OS_REPO}}/os-base:{{.VERSION}}{{.SUFFIX}}
- command: netconf
- labels:
- io.rancher.os.scope: system
- io.rancher.os.after: cloud-init-pre
- net: host
- uts: host
- pid: host
- privileged: true
- volumes_from:
- - command-volumes
- - system-volumes
- network:
- image: {{.OS_REPO}}/os-base:{{.VERSION}}{{.SUFFIX}}
- command: netconf --stop-network-pre
- labels:
- io.rancher.os.scope: system
- io.rancher.os.after: cloud-init
- net: host
- uts: host
- pid: host
- privileged: true
- volumes_from:
- - command-volumes
- - system-volumes
- ntp:
- image: {{.OS_REPO}}/os-ntp:{{.VERSION}}{{.SUFFIX}}
- labels:
- io.rancher.os.scope: system
- io.rancher.os.after: network-pre
- net: host
- uts: host
- privileged: true
- restart: always
- preload-system-images:
- image: {{.OS_REPO}}/os-preload:{{.VERSION}}{{.SUFFIX}}
- labels:
- io.rancher.os.detach: "false"
- io.rancher.os.scope: system
- privileged: true
- volumes:
- - /var/run/system-docker.sock:/var/run/docker.sock
- - /var/lib/system-docker/preload:/mnt/preload
- volumes_from:
- - command-volumes
- - system-volumes
- preload-user-images:
- image: {{.OS_REPO}}/os-preload:{{.VERSION}}{{.SUFFIX}}
- labels:
- io.rancher.os.detach: "false"
- io.rancher.os.scope: system
- io.rancher.os.after: console
- privileged: true
- volumes:
- - /var/run/docker.sock:/var/run/docker.sock
- - /var/lib/docker/preload:/mnt/preload
- volumes_from:
- - command-volumes
- - system-volumes
- syslog:
- image: {{.OS_REPO}}/os-syslog:{{.VERSION}}{{.SUFFIX}}
- labels:
- io.rancher.os.scope: system
- log_driver: json-file
- net: host
- uts: host
- privileged: true
- restart: always
- volumes_from:
- - system-volumes
- system-volumes:
- image: {{.OS_REPO}}/os-state:{{.VERSION}}{{.SUFFIX}}
- labels:
- io.rancher.os.createonly: "true"
- io.rancher.os.scope: system
- log_driver: json-file
- net: none
- privileged: true
- read_only: true
- volumes:
- - /dev:/host/dev
- - /etc/docker:/etc/docker
- - /etc/hosts:/etc/hosts
- - /etc/resolv.conf:/etc/resolv.conf
- - /etc/rkt:/etc/rkt
- - /etc/ssl/certs/ca-certificates.crt:/etc/ssl/certs/ca-certificates.crt.rancher
- - /etc/selinux:/etc/selinux
- - /lib/firmware:/lib/firmware
- - /lib/modules:/lib/modules
- - /run:/run
- - /usr/share/ros:/usr/share/ros
- - /var/lib/rancher/cache:/var/lib/rancher/cache
- - /var/lib/rancher/conf:/var/lib/rancher/conf
- - /var/lib/rancher:/var/lib/rancher
- - /var/log:/var/log
- - /var/run:/var/run
- udev-cold:
- image: {{.OS_REPO}}/os-udev:{{.VERSION}}{{.SUFFIX}}
- labels:
- io.rancher.os.scope: system
- io.rancher.os.before: udev
- net: host
- uts: host
- privileged: true
- volumes_from:
- - system-volumes
- udev:
- image: {{.OS_REPO}}/os-udev:{{.VERSION}}{{.SUFFIX}}
- environment:
- - DAEMON=true
- labels:
- io.rancher.os.detach: "true"
- io.rancher.os.scope: system
- net: host
- uts: host
- privileged: true
- restart: always
- volumes_from:
- - system-volumes
- user-volumes:
- image: {{.OS_REPO}}/os-state:{{.VERSION}}{{.SUFFIX}}
- labels:
- io.rancher.os.createonly: "true"
- io.rancher.os.scope: system
- log_driver: json-file
- net: none
- privileged: true
- read_only: true
- volumes:
- - /home:/home
- - /opt:/opt
- docker:
- image: {{.OS_REPO}}/os-docker:{{.VERSION}}{{.SUFFIX}}
- labels:
- io.rancher.os.scope: system
- io.rancher.os.after: console
- net: host
- pid: host
- ipc: host
- uts: host
- privileged: true
- restart: always
- volumes_from:
- - all-volumes
- volumes:
- - /sys/fs/cgroup:/host/sys/fs/cgroup
- system_docker:
- exec: true
- args: [daemon, --log-opt, max-size=25m, --log-opt, max-file=2, -s, overlay, -b, docker-sys,
- --fixed-cidr, 172.18.42.1/16, --restart=false, -g, /var/lib/system-docker, -G, root,
- -H, 'unix:///var/run/system-docker.sock', --userland-proxy=false]
- upgrade:
- url: {{.OS_RELEASES_YML}}
- image: {{.OS_REPO}}/os
- docker:
- tls_args: [--tlsverify, --tlscacert=/etc/docker/tls/ca.pem, --tlscert=/etc/docker/tls/server-cert.pem, --tlskey=/etc/docker/tls/server-key.pem,
- '-H=0.0.0.0:2376']
- args: [daemon, --log-opt, max-size=25m, --log-opt, max-file=2, -s, overlay, -G, docker, -H, 'unix:///var/run/docker.sock']
|