node.yaml.v1.j2 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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 %}
  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. masterClientConnectionOverrides:
  33. acceptContentTypes: application/vnd.kubernetes.protobuf,application/json
  34. contentType: application/vnd.kubernetes.protobuf
  35. burst: 200
  36. qps: 100
  37. masterKubeConfig: system:node:{{ openshift.common.hostname }}.kubeconfig
  38. {% if openshift_node_use_openshift_sdn | bool %}
  39. networkPluginName: {{ openshift_node_sdn_network_plugin_name }}
  40. {% endif %}
  41. # networkConfig struct introduced in origin 1.0.6 and OSE 3.0.2 which
  42. # deprecates networkPluginName above. The two should match.
  43. networkConfig:
  44. mtu: {{ openshift.node.sdn_mtu }}
  45. {% 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' %}
  46. networkPluginName: {{ openshift_node_sdn_network_plugin_name }}
  47. {% endif %}
  48. {% if openshift.node.set_node_ip | bool %}
  49. nodeIP: {{ openshift.common.ip }}
  50. {% endif %}
  51. nodeName: {{ openshift.node.nodename }}
  52. podManifestConfig:
  53. servingInfo:
  54. bindAddress: 0.0.0.0:10250
  55. certFile: server.crt
  56. clientCA: ca.crt
  57. keyFile: server.key
  58. {% if openshift_node_min_tls_version is defined %}
  59. minTLSVersion: {{ openshift_node_min_tls_version }}
  60. {% endif %}
  61. {% if openshift_node_cipher_suites is defined %}
  62. cipherSuites:
  63. {% for cipher_suite in openshift_node_cipher_suites %}
  64. - {{ cipher_suite }}
  65. {% endfor %}
  66. {% endif %}
  67. volumeDirectory: {{ openshift_node_data_dir }}/openshift.local.volumes
  68. {% if not (openshift_node_use_kuryr | default(False)) | bool %}
  69. proxyArguments:
  70. proxy-mode:
  71. - {{ openshift.node.proxy_mode }}
  72. {% endif %}
  73. volumeConfig:
  74. localQuota:
  75. perFSGroup: {{ openshift.node.local_quota_per_fsgroup }}