node.yaml.v1.j2 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. allowDisabledDocker: false
  2. apiVersion: v1
  3. dnsDomain: {{ openshift.common.dns_domain }}
  4. {% if 'dns_ip' in openshift.node %}
  5. dnsIP: {{ openshift.node.dns_ip }}
  6. {% endif %}
  7. dockerConfig:
  8. execHandlerName: ""
  9. iptablesSyncPeriod: "{{ openshift.node.iptables_sync_period }}"
  10. imageConfig:
  11. format: {{ openshift.node.registry_url }}
  12. latest: false
  13. kind: NodeConfig
  14. kubeletArguments: {{ openshift.node.kubelet_args | default(None) | to_padded_yaml(level=1) }}
  15. {% if openshift.common.version_gte_3_3_or_1_3 | bool %}
  16. masterClientConnectionOverrides:
  17. acceptContentTypes: application/vnd.kubernetes.protobuf,application/json
  18. contentType: application/vnd.kubernetes.protobuf
  19. burst: 200
  20. qps: 100
  21. {% endif %}
  22. masterKubeConfig: system:node:{{ openshift.common.hostname }}.kubeconfig
  23. {% if openshift.common.use_openshift_sdn | bool %}
  24. networkPluginName: {{ openshift.common.sdn_network_plugin_name }}
  25. {% endif %}
  26. # networkConfig struct introduced in origin 1.0.6 and OSE 3.0.2 which
  27. # deprecates networkPluginName above. The two should match.
  28. networkConfig:
  29. mtu: {{ openshift.node.sdn_mtu }}
  30. {% 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' %}
  31. networkPluginName: {{ openshift.common.sdn_network_plugin_name }}
  32. {% endif %}
  33. {% if openshift.node.set_node_ip | bool %}
  34. nodeIP: {{ openshift.common.ip }}
  35. {% endif %}
  36. nodeName: {{ openshift.node.nodename }}
  37. podManifestConfig:
  38. servingInfo:
  39. bindAddress: 0.0.0.0:10250
  40. certFile: server.crt
  41. clientCA: ca.crt
  42. keyFile: server.key
  43. {% if openshift_node_min_tls_version is defined %}
  44. minTLSVersion: {{ openshift_node_min_tls_version }}
  45. {% endif %}
  46. {% if openshift_node_cipher_suites is defined %}
  47. cipherSuites:
  48. {% for cipher_suite in openshift_node_cipher_suites %}
  49. - {{ cipher_suite }}
  50. {% endfor %}
  51. {% endif %}
  52. volumeDirectory: {{ openshift.common.data_dir }}/openshift.local.volumes
  53. proxyArguments:
  54. proxy-mode:
  55. - {{ openshift.node.proxy_mode }}
  56. volumeConfig:
  57. localQuota:
  58. perFSGroup: {{ openshift.node.local_quota_per_fsgroup }}