Back to Talos

KubeProxyConfig

website/content/v1.14/reference/configuration/kubernetes/kubeproxyconfig.md

1.14.02.4 KB
Original Source
<!-- markdownlint-disable -->

{{< highlight yaml >}} apiVersion: v1alpha1 kind: KubeProxyConfig image: registry.k8s.io/kube-proxy:v1.37.0 # The container image used in the kube-proxy manifest. mode: nftables # description: |

Provide configuration for the kube-proxy.

config: bindAddressHardFail: true

Configure the kube-proxy resources.

resources: # Requests configures the reserved cpu/memory resources. requests: cpu: 100m memory: 50Mi

# # Limits configures the maximum cpu/memory limits a pod can use.

# # resources limits.
# limits:
#     cpu: 2
#     memory: 2500Mi

{{< /highlight >}}

FieldTypeDescriptionValue(s)
enabledboolEnable or disable kube-proxy deployment on cluster bootstrap.

Default is enabled. | | |image |string |The container image used in the kube-proxy manifest. | | |mode |string |description: | Proxy mode of kube-proxy.

The default value is 'nftables'. It is not recommended to use any other value. values:

  • iptables
  • ipvs
  • nftables | | |config |Unstructured |Provide configuration for the kube-proxy.

There is no need to specify kind and apiVersion fields (they will be set automatically), but the rest of the configuration should be provided as is.

See https://kubernetes.io/docs/reference/config-api/kube-proxy-config.v1alpha1/ for the details of the configuration schema. | | |extraArgs |Args |Extra arguments to supply to kube-proxy.

Please note that kube-proxy is configured with a configuration file, so most flags have no effect. | | |resources |<a href="#KubeProxyConfig.resources">ResourcesConfig</a> |Configure the kube-proxy resources. | |

resources {#KubeProxyConfig.resources}

ResourcesConfig represents the pod resources.

FieldTypeDescriptionValue(s)
requestsUnstructuredRequests configures the reserved cpu/memory resources. <details><summary>Show example(s)</summary>resources requests.:{{< highlight yaml >}}
requests:
cpu: 1
memory: 1Gi

{{< /highlight >}}</details> | | |limits |Unstructured |Limits configures the maximum cpu/memory limits a pod can use. <details><summary>Show example(s)</summary>resources limits.:{{< highlight yaml >}} limits: cpu: 2 memory: 2500Mi {{< /highlight >}}</details> | |