En esta página, se describe la lista de hostPorts reservados en Google Kubernetes Engine (GKE).
hostPorts reservados por el sistema de GKE
GKE reserva rangos hostPort específicos para sus procesos y servicios internos del sistema. Estas reservas son fundamentales para mantener la estabilidad y la funcionalidad de los clústeres de GKE. Si bien GKE generalmente desaconseja el uso de hostPort para las aplicaciones del usuario debido a posibles conflictos y riesgos de seguridad, las usa para las operaciones internas.
Propósito de los hostPorts reservados
Comunicación del plano de control: Es posible que ciertos componentes de GKE, como kubelet y metrics-server, usen hostPorts específicos para comunicarse con el plano de control o con otros servicios internos.
Daemons del sistema: Es posible que los daemons y agentes del sistema de GKE requieran acceso a puertos específicos en los nodos para la supervisión, el registro o cualquier otra tarea operativa.
Servicios internos: Los servicios internos de GKE, responsables de la administración del clúster y las verificaciones de estado, pueden usar hostPorts reservados.
Información sobre los rangos reservados
Si bien los rangos exactos pueden variar según la versión y la configuración de GKE, GKE reserva una parte del espacio de puertos disponible. Por lo general, estos rangos reservados no se documentan para el uso de usuarios externos, ya que están sujetos a cambios.
Es muy importante evitar el uso de puertos con números bajos, ya que los sistemas operativos suelen reservarlos.
Prácticas recomendadas
Recomendaciones:
Evita el uso de hostPort: Minimiza el uso de hostPort en las implementaciones de tu aplicación para reducir el riesgo de conflictos con los puertos reservados de GKE.
Abstracciones de Service: Usa los tipos de servicio de Kubernetes (NodePort, LoadBalancer, Ingress) como alternativas preferidas a hostPort.
Análisis de seguridad: Si hostPort es inevitable, revisa y
aplica cuidadosamente las reglas de firewall para restringir el acceso a los puertos expuestos.
Consideraciones sobre Autopilot: Cuando usas GKE Autopilot, ten en cuenta que no puedes especificar hostPorts exactos.
Lista de hostPorts reservados
Componente
Puertos de host reservados
CNI / DPv2
9990, 6942, 9890, 4244, 9965
kubelet
4194, 10248, 10250, 10255
kube-proxy
10249, 10256
node-problem-detector
20256
fluentbit
2020 y 2021
stackdriver-metadata-agent
8799
sunrpc (activaciones de NFS locales)
665 - 986
Filestore
990
k8s-metadata-proxy o gke-metadata-server
987, 988 y 989
node-local-dns
53, 8080, 9253, 9353
gcfsd
11253
Política de red de Antrea
10349, 10350, 10351, 10352
network-metering-agent
47082 y 47083
configconnector
8888, 48797
gke-spiffe
9889
workload-identity-webhook
9910
Agente de métricas de GKE
8200, 8201, 8202, 8203
Complemento GPU Device
2112
runsc (gVisor / GKE Sandbox)
9115
containerd
1338
Recopilador de métricas de GKE
11123
netd
10231
Lista de hostPorts reservados que son específicos de Autopilot
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Información o código de muestra incorrectos","incorrectInformationOrSampleCode","thumb-down"],["Faltan la información o los ejemplos que necesito","missingTheInformationSamplesINeed","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2025-08-04 (UTC)"],[],[],null,["# Reserved hostPorts\n\n[Autopilot](/kubernetes-engine/docs/concepts/autopilot-overview) [Standard](/kubernetes-engine/docs/concepts/choose-cluster-mode)\n\n*** ** * ** ***\n\nThis page describes the list of reserved hostPorts within\nGoogle Kubernetes Engine (GKE).\n| **Note:** Always refer to the latest GKE release notes for any updates or changes to GKE's reserved hostPort ranges. When in doubt, avoid using hostPorts and rely on Kubernetes service abstractions.\n\nGKE System reserved hostPorts\n-----------------------------\n\nGKE reserves specific `hostPort` ranges for its internal system\nprocesses and services. These reservations are crucial for maintaining the\nstability and functionality of GKE clusters. Although\nGKE generally discourages the use of `hostPort` for user\napplications due to potential conflicts and security risks, it relies on them\nfor internal operations.\n| **Warning:** Attempting to use hostPorts within GKE's reserved ranges might result in Pod deployment failures or unexpected cluster behavior. GKE reserves the right to change these ranges without prior notice.\n\n### Purpose of reserved hostPorts\n\n- **Control plane communication**: certain GKE components, such as the kubelet and metrics-server, might use specific hostPorts for communication with the control plane or other internal services.\n- **System daemons**: GKE system daemons and agents might require access to specific ports on the nodes for monitoring, logging, or other operational tasks.\n- **Internal services**: GKE's internal services, responsible for cluster management and health checks, might use reserved hostPorts.\n\n### Understanding reserved ranges\n\nAlthough the exact ranges can vary based on GKE version and\nconfiguration, GKE\nreserves a portion of the available port space. These reserved ranges are\ntypically not documented for external user usage, as they are subject to change.\nIt is very important to avoid using low-numbered ports, as these are commonly\nreserved by operating systems.\n\n### Best practices\n\n**Best practices**:\n\n- **Avoid hostPort usage**: minimize the use of hostPort in your application deployments to reduce the risk of conflicts with GKE's reserved ports.\n- **Service abstractions**: use Kubernetes service types (NodePort, LoadBalancer, Ingress) as preferred alternatives to hostPort.\n- **Security scrutiny**: if hostPort is unavoidable, carefully review and implement firewall rules to restrict access to the exposed ports.\n- **Autopilot considerations**: when you use GKE Autopilot, be aware that you are unable to specify exact hostPorts.\n\n### List of reserved hostPorts\n\n### List of reserved hostPorts that are specific to Autopilot\n\nWhat's next\n-----------\n\n- Read an overview of [networking in\n GKE](/kubernetes-engine/docs/concepts/network-overview).\n- Learn about [Kubernetes Services](/kubernetes-engine/docs/concepts/service).\n- Learn about [exposing\n applications](/kubernetes-engine/docs/how-to/exposing-apps)."]]