node-config.yaml.j2 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. kind: NodeConfig
  2. apiVersion: v1
  3. authConfig:
  4. authenticationCacheSize: 1000
  5. authenticationCacheTTL: 5m
  6. authorizationCacheSize: 1000
  7. authorizationCacheTTL: 5m
  8. dnsBindAddress: "127.0.0.1:53"
  9. dnsDomain: cluster.local
  10. dnsIP: 0.0.0.0
  11. dnsNameservers: null
  12. dnsRecursiveResolvConf: /etc/origin/node/resolv.conf
  13. dockerConfig:
  14. dockerShimRootDirectory: /var/lib/dockershim
  15. dockerShimSocket: /var/run/dockershim.sock
  16. execHandlerName: native
  17. enableUnidling: true
  18. imageConfig:
  19. format: "{{ openshift_imageconfig_format }}"
  20. latest: false
  21. iptablesSyncPeriod: "{{ openshift_node_iptables_sync_period }}"
  22. kubeletArguments:
  23. {% if openshift_is_atomic | bool %}
  24. volume-plugin-dir:
  25. - "/etc/origin/kubelet-plugins/volume/exec"
  26. {% endif %}
  27. {% if openshift_use_crio | bool %}
  28. container-runtime:
  29. - remote
  30. container-runtime-endpoint:
  31. - {{ openshift_crio_var_sock }}
  32. image-service-endpoint:
  33. - {{ openshift_crio_var_sock }}
  34. runtime-request-timeout:
  35. - 10m
  36. {% endif %}
  37. pod-manifest-path:
  38. - /etc/origin/node/pods
  39. bootstrap-kubeconfig:
  40. - /etc/origin/node/bootstrap.kubeconfig
  41. feature-gates:
  42. - RotateKubeletClientCertificate=true,RotateKubeletServerCertificate=true
  43. {% if openshift_node_group_use_persistentlocalvolumes | bool %}
  44. - PersistentLocalVolumes=true
  45. - VolumeScheduling=true
  46. {% endif %}
  47. rotate-certificates:
  48. - "true"
  49. cert-dir:
  50. - /etc/origin/node/certificates
  51. {% if openshift_node_group_cloud_provider != '' %}
  52. cloud-config:
  53. - /etc/origin/cloudprovider/{{ openshift_node_group_cloud_provider }}.conf
  54. cloud-provider:
  55. - {{ openshift_node_group_cloud_provider }}
  56. {% endif %}
  57. {% if l_openshift_node_group_labels != [] %}
  58. node-labels:
  59. - < this is always modified via yedit: openshift_node_labels_edit >
  60. {% endif %}
  61. enable-controller-attach-detach:
  62. - 'true'
  63. masterClientConnectionOverrides:
  64. acceptContentTypes: application/vnd.kubernetes.protobuf,application/json
  65. burst: 40
  66. contentType: application/vnd.kubernetes.protobuf
  67. qps: 20
  68. masterKubeConfig: node.kubeconfig
  69. networkConfig:
  70. mtu: {{ openshift.node.sdn_mtu }}
  71. networkPluginName: {{ openshift_node_group_network_plugin }}
  72. servingInfo:
  73. bindAddress: 0.0.0.0:10250
  74. bindNetwork: tcp4
  75. clientCA: client-ca.crt
  76. volumeConfig:
  77. localQuota:
  78. perFSGroup: null
  79. volumeDirectory: {{ openshift_node_group_node_data_dir }}/openshift.local.volumes