Difference between revisions of "Kubernetes LoadBalancer"
Jump to navigation
Jump to search
↑ https://kubernetes.io/docs/tutorials/stateless-application/expose-external-ip-address/
(4 intermediate revisions by the same user not shown) | |||
Line 8: | Line 8: | ||
* <code>[[kubectl expose deployment]] hello-world [[--type]]=[[LoadBalancer]] --name=my-service</code><ref>https://kubernetes.io/docs/tutorials/stateless-application/expose-external-ip-address/</ref> | * <code>[[kubectl expose deployment]] hello-world [[--type]]=[[LoadBalancer]] --name=my-service</code><ref>https://kubernetes.io/docs/tutorials/stateless-application/expose-external-ip-address/</ref> | ||
− | + | ||
− | + | == Example == | |
− | + | {{type LoadBalancer}} | |
+ | |||
+ | == Activities == | ||
+ | * [[Understand ClusterIP, NodePort, LoadBalancer service types and endpoints]] | ||
== Related == | == Related == | ||
Line 16: | Line 19: | ||
* <code>[[NodePort]]</code> | * <code>[[NodePort]]</code> | ||
* [[ServiceTypes]] | * [[ServiceTypes]] | ||
− | * [[Kubernetes: Ingress controllers|Ingress controller]] | + | * [[Kubernetes: Ingress controllers|Ingress controller]]: <code>[[kind: Ingress]]</code> |
== See also == | == See also == | ||
− | |||
* {{Kubernetes networking}} | * {{Kubernetes networking}} | ||
+ | * {{K8s LB}} | ||
[[Category:CKA]] | [[Category:CKA]] | ||
[[Category:K8s]] | [[Category:K8s]] |
Latest revision as of 13:50, 26 October 2023
Kubernetes LoadBalancer
exposes the Service externally using a cloud provider's load balancer.
kubectl expose deployment hello-world --type=LoadBalancer --name=my-service
[1]
Contents
Example[edit]
apiVersion: v1 kind: Service metadata: name: example-service spec: selector: app: example ports: - port: 8765 targetPort: 9376 type: LoadBalancer
Activities[edit]
Related[edit]
See also[edit]
- Kubernetes networking: network policies, Network Policy Providers, CNI, Calico, flannel, Service mesh, Istio,
kube-proxy, coredns, AWS VPC CNI: vpc-cni
, Kubernetes: Ingress controllers, IPVS, ServiceTypes:LoadBalancer, ClusterIP, NodePort, ExternalName
, Endpoints, EndpointSlices, Kubernetes DNS,svc.cluster.local
, Weave Net - Kubernetes LoadBalancer,
type: LoadBalancer
Advertising: