node.yaml.v1.j2 2.6 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: {{ openshift_node_image_config_latest }}
  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. image-service-endpoint:
  25. - /var/run/crio.sock
  26. node-labels:
  27. - router=true
  28. - registry=true
  29. runtime-request-timeout:
  30. - 10m
  31. {% endif %}
  32. {% if openshift.common.version_gte_3_3_or_1_3 | bool %}
  33. masterClientConnectionOverrides:
  34. acceptContentTypes: application/vnd.kubernetes.protobuf,application/json
  35. contentType: application/vnd.kubernetes.protobuf
  36. burst: 200
  37. qps: 100
  38. {% endif %}
  39. masterKubeConfig: system:node:{{ openshift.common.hostname }}.kubeconfig
  40. {% if openshift_node_use_openshift_sdn | bool %}
  41. networkPluginName: {{ openshift_node_sdn_network_plugin_name }}
  42. {% endif %}
  43. # networkConfig struct introduced in origin 1.0.6 and OSE 3.0.2 which
  44. # deprecates networkPluginName above. The two should match.
  45. networkConfig:
  46. mtu: {{ openshift.node.sdn_mtu }}
  47. {% if openshift_node_use_openshift_sdn | bool or openshift_node_use_nuage | bool or openshift_node_use_contiv | bool or openshift_node_use_kuryr | bool or openshift_node_sdn_network_plugin_name == 'cni' %}
  48. networkPluginName: {{ openshift_node_sdn_network_plugin_name }}
  49. {% endif %}
  50. {% if openshift.node.set_node_ip | bool %}
  51. nodeIP: {{ openshift.common.ip }}
  52. {% endif %}
  53. nodeName: {{ openshift.node.nodename }}
  54. podManifestConfig:
  55. servingInfo:
  56. bindAddress: 0.0.0.0:10250
  57. certFile: server.crt
  58. clientCA: ca.crt
  59. keyFile: server.key
  60. {% if openshift_node_min_tls_version is defined %}
  61. minTLSVersion: {{ openshift_node_min_tls_version }}
  62. {% endif %}
  63. {% if openshift_node_cipher_suites is defined %}
  64. cipherSuites:
  65. {% for cipher_suite in openshift_node_cipher_suites %}
  66. - {{ cipher_suite }}
  67. {% endfor %}
  68. {% endif %}
  69. volumeDirectory: {{ openshift_node_data_dir }}/openshift.local.volumes
  70. {% if not (openshift_node_use_kuryr | default(False)) | bool %}
  71. proxyArguments:
  72. proxy-mode:
  73. - {{ openshift.node.proxy_mode }}
  74. {% endif %}
  75. volumeConfig:
  76. localQuota:
  77. perFSGroup: {{ openshift.node.local_quota_per_fsgroup }}