node.yaml.v1.j2 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. allowDisabledDocker: false
  2. apiVersion: v1
  3. dnsBindAddress: 127.0.0.1:53
  4. dnsRecursiveResolvConf: /etc/origin/node/resolv.conf
  5. dnsDomain: {{ openshift.common.dns_domain }}
  6. dnsIP: {{ openshift_dns_ip }}
  7. dockerConfig:
  8. execHandlerName: ""
  9. iptablesSyncPeriod: "{{ openshift_node_iptables_sync_period }}"
  10. imageConfig:
  11. format: {{ oreg_url_node }}
  12. latest: {{ openshift_node_image_config_latest }}
  13. kind: NodeConfig
  14. kubeletArguments: {{ l2_openshift_node_kubelet_args | default(None) | lib_utils_to_padded_yaml(level=1) }}
  15. {% if openshift_use_crio | bool %}
  16. container-runtime:
  17. - remote
  18. container-runtime-endpoint:
  19. - {{ l_crio_var_sock }}
  20. image-service-endpoint:
  21. - {{ l_crio_var_sock }}
  22. runtime-request-timeout:
  23. - 10m
  24. {% endif %}
  25. {% if openshift_node_use_persistentlocalvolumes | bool %}
  26. feature-gates:
  27. - PersistentLocalVolumes=true
  28. {% endif %}
  29. masterClientConnectionOverrides:
  30. acceptContentTypes: application/vnd.kubernetes.protobuf,application/json
  31. contentType: application/vnd.kubernetes.protobuf
  32. burst: 200
  33. qps: 100
  34. masterKubeConfig: system:node:{{ openshift.common.hostname | lower }}.kubeconfig
  35. networkConfig:
  36. mtu: {{ openshift.node.sdn_mtu }}
  37. {% 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' %}
  38. networkPluginName: {{ openshift_node_sdn_network_plugin_name }}
  39. {% endif %}
  40. {% if openshift_set_node_ip | bool %}
  41. nodeIP: {{ openshift.common.ip }}
  42. {% endif %}
  43. nodeName: {{ openshift.node.nodename }}
  44. podManifestConfig:
  45. servingInfo:
  46. bindAddress: 0.0.0.0:10250
  47. certFile: server.crt
  48. clientCA: ca.crt
  49. keyFile: server.key
  50. {% if openshift_node_min_tls_version is defined %}
  51. minTLSVersion: {{ openshift_node_min_tls_version }}
  52. {% endif %}
  53. {% if openshift_node_cipher_suites is defined %}
  54. cipherSuites:
  55. {% for cipher_suite in openshift_node_cipher_suites %}
  56. - {{ cipher_suite }}
  57. {% endfor %}
  58. {% endif %}
  59. volumeDirectory: {{ openshift_node_data_dir }}/openshift.local.volumes
  60. {% if not (openshift_node_use_kuryr | default(False)) | bool %}
  61. proxyArguments:
  62. proxy-mode:
  63. - {{ openshift_node_proxy_mode }}
  64. {% endif %}
  65. volumeConfig:
  66. localQuota:
  67. perFSGroup: {{ openshift_node_local_quota_per_fsgroup }}