|
@@ -3,15 +3,8 @@ After={{ openshift_service_type }}-master.service
|
|
After={{ openshift_docker_service_name }}.service
|
|
After={{ openshift_docker_service_name }}.service
|
|
After=chronyd.service
|
|
After=chronyd.service
|
|
After=ntpd.service
|
|
After=ntpd.service
|
|
-After=openvswitch.service
|
|
|
|
PartOf={{ openshift_docker_service_name }}.service
|
|
PartOf={{ openshift_docker_service_name }}.service
|
|
Requires={{ openshift_docker_service_name }}.service
|
|
Requires={{ openshift_docker_service_name }}.service
|
|
-{% if openshift_node_use_openshift_sdn %}
|
|
|
|
-Wants=openvswitch.service
|
|
|
|
-PartOf=openvswitch.service
|
|
|
|
-After=ovsdb-server.service
|
|
|
|
-After=ovs-vswitchd.service
|
|
|
|
-{% endif %}
|
|
|
|
Wants={{ openshift_service_type }}-master.service
|
|
Wants={{ openshift_service_type }}-master.service
|
|
Requires={{ openshift_service_type }}-node-dep.service
|
|
Requires={{ openshift_service_type }}-node-dep.service
|
|
After={{ openshift_service_type }}-node-dep.service
|
|
After={{ openshift_service_type }}-node-dep.service
|
|
@@ -26,6 +19,7 @@ ExecStartPre=/usr/bin/cp /etc/origin/node/node-dnsmasq.conf /etc/dnsmasq.d/
|
|
ExecStartPre=/usr/bin/dbus-send --system --dest=uk.org.thekelleys.dnsmasq /uk/org/thekelleys/dnsmasq uk.org.thekelleys.SetDomainServers array:string:/in-addr.arpa/127.0.0.1,/{{ openshift.common.dns_domain }}/127.0.0.1
|
|
ExecStartPre=/usr/bin/dbus-send --system --dest=uk.org.thekelleys.dnsmasq /uk/org/thekelleys/dnsmasq uk.org.thekelleys.SetDomainServers array:string:/in-addr.arpa/127.0.0.1,/{{ openshift.common.dns_domain }}/127.0.0.1
|
|
ExecStart=/usr/bin/docker run --name {{ openshift_service_type }}-node \
|
|
ExecStart=/usr/bin/docker run --name {{ openshift_service_type }}-node \
|
|
--rm --privileged --net=host --pid=host --env-file=/etc/sysconfig/{{ openshift_service_type }}-node \
|
|
--rm --privileged --net=host --pid=host --env-file=/etc/sysconfig/{{ openshift_service_type }}-node \
|
|
|
|
+ --entrypoint /usr/local/bin/openshift-node \
|
|
-v /:/rootfs:ro,rslave -e CONFIG_FILE=${CONFIG_FILE} -e OPTIONS=${OPTIONS} -e DEBUG_LOGLEVEL=${DEBUG_LOGLEVEL}\
|
|
-v /:/rootfs:ro,rslave -e CONFIG_FILE=${CONFIG_FILE} -e OPTIONS=${OPTIONS} -e DEBUG_LOGLEVEL=${DEBUG_LOGLEVEL}\
|
|
-e HOST=/rootfs -e HOST_ETC=/host-etc \
|
|
-e HOST=/rootfs -e HOST_ETC=/host-etc \
|
|
-v {{ openshift_node_data_dir }}:{{ openshift_node_data_dir }}:rslave \
|
|
-v {{ openshift_node_data_dir }}:{{ openshift_node_data_dir }}:rslave \
|
|
@@ -34,8 +28,8 @@ ExecStart=/usr/bin/docker run --name {{ openshift_service_type }}-node \
|
|
-v /etc/localtime:/etc/localtime:ro -v /etc/machine-id:/etc/machine-id:ro \
|
|
-v /etc/localtime:/etc/localtime:ro -v /etc/machine-id:/etc/machine-id:ro \
|
|
-v /run:/run -v /sys:/sys:rw -v /sys/fs/cgroup:/sys/fs/cgroup:rw \
|
|
-v /run:/run -v /sys:/sys:rw -v /sys/fs/cgroup:/sys/fs/cgroup:rw \
|
|
-v /usr/bin/docker:/usr/bin/docker:ro -v /var/lib/docker:/var/lib/docker \
|
|
-v /usr/bin/docker:/usr/bin/docker:ro -v /var/lib/docker:/var/lib/docker \
|
|
- -v /lib/modules:/lib/modules -v /etc/origin/openvswitch:/etc/openvswitch \
|
|
|
|
- -v /etc/origin/sdn:/etc/openshift-sdn -v /var/lib/cni:/var/lib/cni \
|
|
|
|
|
|
+ -v /lib/modules:/lib/modules \
|
|
|
|
+ -v /etc/cni:/etc/cni:ro -v /opt/cni:/opt/cni:ro \
|
|
-v /etc/systemd/system:/host-etc/systemd/system -v /var/log:/var/log \
|
|
-v /etc/systemd/system:/host-etc/systemd/system -v /var/log:/var/log \
|
|
{% if openshift_use_nuage | default(false) -%} $NUAGE_ADDTL_BIND_MOUNTS {% endif -%} \
|
|
{% if openshift_use_nuage | default(false) -%} $NUAGE_ADDTL_BIND_MOUNTS {% endif -%} \
|
|
-v /dev:/dev $DOCKER_ADDTL_BIND_MOUNTS -v /etc/pki:/etc/pki:ro \
|
|
-v /dev:/dev $DOCKER_ADDTL_BIND_MOUNTS -v /etc/pki:/etc/pki:ro \
|