node.yaml.v1.j2 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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 %}
  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. volumeDirectory: {{ openshift.common.data_dir }}/openshift.local.volumes
  44. proxyArguments:
  45. proxy-mode:
  46. - {{ openshift.node.proxy_mode }}
  47. volumeConfig:
  48. localQuota:
  49. perFSGroup: {{ openshift.node.local_quota_per_fsgroup }}