node.yaml.v1.j2 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. allowDisabledDocker: false
  2. apiVersion: v1
  3. {% if openshift.common.version_gte_3_6 %}
  4. dnsBindAddress: 127.0.0.1:53
  5. dnsRecursiveResolvConf: /etc/origin/node/resolv.conf
  6. {% endif %}
  7. dnsDomain: {{ openshift.common.dns_domain }}
  8. {% if 'dns_ip' in openshift.node %}
  9. dnsIP: {{ openshift.node.dns_ip }}
  10. {% endif %}
  11. dockerConfig:
  12. execHandlerName: ""
  13. iptablesSyncPeriod: "{{ openshift.node.iptables_sync_period }}"
  14. imageConfig:
  15. format: {{ openshift.node.registry_url }}
  16. latest: false
  17. kind: NodeConfig
  18. kubeletArguments: {{ openshift.node.kubelet_args | default(None) | to_padded_yaml(level=1) }}
  19. {% if openshift_use_crio | default(False) %}
  20. container-runtime:
  21. - remote
  22. container-runtime-endpoint:
  23. - /var/run/crio.sock
  24. experimental-cri:
  25. - 'true'
  26. image-service-endpoint:
  27. - /var/run/crio.sock
  28. node-labels:
  29. - router=true
  30. - registry=true
  31. runtime-request-timeout:
  32. - 10m
  33. {% endif %}
  34. {% if openshift.common.version_gte_3_3_or_1_3 | bool %}
  35. masterClientConnectionOverrides:
  36. acceptContentTypes: application/vnd.kubernetes.protobuf,application/json
  37. contentType: application/vnd.kubernetes.protobuf
  38. burst: 200
  39. qps: 100
  40. {% endif %}
  41. masterKubeConfig: system:node:{{ openshift.common.hostname }}.kubeconfig
  42. {% if openshift.common.use_openshift_sdn | bool %}
  43. networkPluginName: {{ openshift.common.sdn_network_plugin_name }}
  44. {% endif %}
  45. # networkConfig struct introduced in origin 1.0.6 and OSE 3.0.2 which
  46. # deprecates networkPluginName above. The two should match.
  47. networkConfig:
  48. mtu: {{ openshift.node.sdn_mtu }}
  49. {% if openshift.common.use_openshift_sdn | bool or openshift.common.use_nuage | bool or openshift.common.use_contiv | bool or openshift.common.sdn_network_plugin_name == 'cni' %}
  50. networkPluginName: {{ openshift.common.sdn_network_plugin_name }}
  51. {% endif %}
  52. {% if openshift.node.set_node_ip | bool %}
  53. nodeIP: {{ openshift.common.ip }}
  54. {% endif %}
  55. nodeName: {{ openshift.node.nodename }}
  56. podManifestConfig:
  57. servingInfo:
  58. bindAddress: 0.0.0.0:10250
  59. certFile: server.crt
  60. clientCA: ca.crt
  61. keyFile: server.key
  62. {% if openshift_node_min_tls_version is defined %}
  63. minTLSVersion: {{ openshift_node_min_tls_version }}
  64. {% endif %}
  65. {% if openshift_node_cipher_suites is defined %}
  66. cipherSuites:
  67. {% for cipher_suite in openshift_node_cipher_suites %}
  68. - {{ cipher_suite }}
  69. {% endfor %}
  70. {% endif %}
  71. volumeDirectory: {{ openshift.common.data_dir }}/openshift.local.volumes
  72. proxyArguments:
  73. proxy-mode:
  74. - {{ openshift.node.proxy_mode }}
  75. volumeConfig:
  76. localQuota:
  77. perFSGroup: {{ openshift.node.local_quota_per_fsgroup }}