node.yaml.v1.j2 2.2 KB

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