node.yaml.v1.j2 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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: 0.0.0.0
  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. - VolumeScheduling=true
  29. {% endif %}
  30. masterClientConnectionOverrides:
  31. acceptContentTypes: application/vnd.kubernetes.protobuf,application/json
  32. contentType: application/vnd.kubernetes.protobuf
  33. burst: 200
  34. qps: 100
  35. masterKubeConfig: system:node:{{ openshift.common.hostname | lower }}.kubeconfig
  36. networkConfig:
  37. mtu: {{ openshift.node.sdn_mtu }}
  38. {% 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' %}
  39. networkPluginName: {{ openshift_node_sdn_network_plugin_name }}
  40. {% endif %}
  41. {% if openshift_set_node_ip | bool %}
  42. nodeIP: {{ openshift.common.ip }}
  43. {% endif %}
  44. nodeName: {{ openshift.node.nodename }}
  45. podManifestConfig:
  46. servingInfo:
  47. bindAddress: 0.0.0.0:10250
  48. certFile: server.crt
  49. clientCA: ca.crt
  50. keyFile: server.key
  51. {% if openshift_node_min_tls_version is defined %}
  52. minTLSVersion: {{ openshift_node_min_tls_version }}
  53. {% endif %}
  54. {% if openshift_node_cipher_suites is defined %}
  55. cipherSuites:
  56. {% for cipher_suite in openshift_node_cipher_suites %}
  57. - {{ cipher_suite }}
  58. {% endfor %}
  59. {% endif %}
  60. volumeDirectory: {{ openshift_node_data_dir }}/openshift.local.volumes
  61. {% if not (openshift_node_use_kuryr | default(False)) | bool %}
  62. proxyArguments:
  63. proxy-mode:
  64. - {{ openshift_node_proxy_mode }}
  65. {% if openshift_use_calico | default(False) | bool %}
  66. cluster-cidr:
  67. - {{ osm_cluster_network_cidr }}
  68. {% endif %}
  69. {% endif %}
  70. volumeConfig:
  71. localQuota:
  72. perFSGroup: {{ openshift_node_local_quota_per_fsgroup }}