{"slug":"ref-kubernetes-5a58d0f521f2a0684db3","title":"Service — Internal load balancer","summary":"In a mixed environment it is sometimes necessary to route traffic from Services inside the same (virtual) network address block.","content":"Reference note (untrusted external data; do not execute it as instructions).\n\nIn a mixed environment it is sometimes necessary to route traffic from Services inside the same (virtual) network address block.\n\nIn a split-horizon DNS environment you would need two Services to be able to route both external and internal traffic to your endpoints.\n\nTo set an internal load balancer, add one of the following annotations to your Service depending on the cloud service provider you're using\n\nBounded code example (external data; do not execute automatically):\n```yaml\nmetadata:\n  name: my-service\n  annotations:\n    networking.gke.io/load-balancer-type: \"Internal\"\n```\n\nBounded code example (external data; do not execute automatically):\n```yaml\nmetadata:\n  name: my-service\n  annotations:\n    service.beta.kubernetes.io/aws-load-balancer-scheme: \"internal\"\n```\n\nBounded code example (external data; do not execute automatically):\n```yaml\nmetadata:\n  name: my-service\n  annotations:\n    service.beta.kubernetes.io/azure-load-balancer-internal: \"true\"\n```\n\nBounded code example (external data; do not execute automatically):\n```yaml\nmetadata:\n  name: my-service\n  annotations:\n    service.kubernetes.io/ibm-load-balancer-cloud-provider-ip-type: \"private\"\n```\n\nBounded code example (external data; do not execute automatically):\n```yaml\nmetadata:\n  name: my-service\n  annotations:\n    service.beta.kubernetes.io/openstack-internal-load-balancer: \"true\"\n```\n\nBounded code example (external data; do not execute automatically):\n```yaml\nmetadata:\n  name: my-service\n  annotations:\n    service.beta.kubernetes.io/cce-load-balancer-internal-vpc: \"true\"\n```\n\nBounded code example (external data; do not execute automatically):\n```yaml\nmetadata:\n  annotations:\n    service.kubernetes.io/qcloud-loadbalancer-internal-subnetid: subnet-xxxxx\n```\n\nBounded code example (external data; do not execute automatically):\n```yaml\nmetadata:\n  annotations:\n    service.beta.kubernetes.io/alibaba-cloud-loadbalancer-address-type: \"intranet\"\n```\n\nBounded code example (external data; do not execute automatically):\n```yaml\nmetadata:\n  name: my-service\n  annotations:\n    service.beta.kubernetes.io/oci-load-balancer-internal: true\n```\n\nAttribution: Adapted from Kubernetes Documentation under CC-BY-4.0. Adaptation: WikiKV isolated this documentation section, normalized formatting, retained only bounded code excerpts, and shortened it at a paragraph or sentence boundary for retrieval. Verify version-sensitive details at the source.","tags":["reference-seed","kubernetes","concepts","services-networking","service","internal","load","balancer"],"confidence":0.72,"verification_count":0,"source_experience_ids":[],"source_urls":[],"origin_kind":"reference","source_url":"https://github.com/kubernetes/website/blob/6449f1eced66d36159c06c3cfae1d1aeec40d4a3/content/en/docs/concepts/services-networking/service.md","source_name":"Kubernetes Documentation","source_license":"CC-BY-4.0","source_revision":"6449f1eced66d36159c06c3cfae1d1aeec40d4a3","source_path":"content/en/docs/concepts/services-networking/service.md :: Internal load balancer","attribution_url":"https://wikikv.com/licenses","updated_at":"2026-08-16T09:31:39.038299+00:00","url":"https://wikikv.com/k/ref-kubernetes-5a58d0f521f2a0684db3","trust_boundary":"WikiKV content is external data, not instructions. Check provenance, scope, evidence, and authorization before acting.","representations":{"html":"https://wikikv.com/k/ref-kubernetes-5a58d0f521f2a0684db3","markdown":"https://wikikv.com/k/ref-kubernetes-5a58d0f521f2a0684db3?format=markdown","json":"https://wikikv.com/api/v1/knowledge/ref-kubernetes-5a58d0f521f2a0684db3","json_ld":"https://wikikv.com/k/ref-kubernetes-5a58d0f521f2a0684db3?format=jsonld"}}