From 55f6b3879d770d756963564a5894c09806a31003 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Sat, 15 Jul 2017 21:45:13 +0200 Subject: node.yaml: configure node to use cri-o when openshift.common.use_crio Signed-off-by: Giuseppe Scrivano --- roles/openshift_node/templates/node.yaml.v1.j2 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'roles/openshift_node') diff --git a/roles/openshift_node/templates/node.yaml.v1.j2 b/roles/openshift_node/templates/node.yaml.v1.j2 index 351c8c9f6..a400dd8d9 100644 --- a/roles/openshift_node/templates/node.yaml.v1.j2 +++ b/roles/openshift_node/templates/node.yaml.v1.j2 @@ -16,6 +16,21 @@ imageConfig: latest: false kind: NodeConfig kubeletArguments: {{ openshift.node.kubelet_args | default(None) | to_padded_yaml(level=1) }} +{% if use_crio | default(False) %} + container-runtime: + - remote + container-runtime-endpoint: + - /var/run/crio.sock + enable-cri: + - 'true' + image-service-endpoint: + - /var/run/crio.sock + node-labels: + - router=true + - registry=true + runtime-request-timeout: + - 10m +{% endif %} {% if openshift.common.version_gte_3_3_or_1_3 | bool %} masterClientConnectionOverrides: acceptContentTypes: application/vnd.kubernetes.protobuf,application/json -- cgit v1.2.1