node.yaml.v1.j2 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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: 40
  20. ops: 20
  21. {% endif %}
  22. masterKubeConfig: system:node:{{ openshift.common.hostname }}.kubeconfig
  23. {% if openshift.common.use_openshift_sdn %}
  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 or openshift.common.use_nuage %}
  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.common.hostname | lower }}
  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. {% include 'partials/kubeletArguments.j2' %}
  45. proxyArguments:
  46. proxy-mode:
  47. - {{ openshift.node.proxy_mode }}
  48. volumeConfig:
  49. localQuota:
  50. perFSGroup: {{ openshift.node.local_quota_per_fsgroup }}