Difference between revisions of "Kubectl create service loadbalancer"
Jump to navigation
Jump to search
(20 intermediate revisions by 4 users not shown) | |||
Line 2: | Line 2: | ||
https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#-em-service-loadbalancer-em- | https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#-em-service-loadbalancer-em- | ||
+ | [[kubectl create service]] loadbalancer | ||
+ | [[kubectl create service]] loadbalancer my-lbs --tcp=5678:8080 | ||
+ | {{type LoadBalancer}} | ||
+ | |||
+ | |||
+ | == Activities == | ||
+ | * [[Understand difference between Ingress vs Load Balancer]] | ||
+ | * Understand the differences between: <code>kubectl create service loadbalancer</code> and <code>[[kubectl expose deployment]]</code> | ||
+ | |||
+ | == Related == | ||
+ | * [[Ingress]] | ||
+ | * [[NGINX Ingress Controller]]: <code>[[helm install nginx]]</code> | ||
+ | * [[AWS Load Balancer Controller]] | ||
+ | * <code>[[kubectl describe service]]</code> [<code>[[kubectl describe service loadbalancer | loadbalancer]]</code>] | ||
+ | * <code>[[kubectl expose deployment]]: kubectl expose deployment mydeployment-name --type=LoadBalancer --name=mylbformydeployment</code> | ||
== See also == | == See also == | ||
+ | * {{kubectl service lb}} | ||
+ | * {{kubectl create service}} | ||
* {{Kubernetes services}} | * {{Kubernetes services}} | ||
+ | * {{Ingress}} | ||
+ | * {{Kubernetes LoadBalancer}} | ||
[[Category:Kubernetes]] | [[Category:Kubernetes]] |
Latest revision as of 20:19, 8 November 2023
https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#-em-service-loadbalancer-em-
kubectl create service loadbalancer kubectl create service loadbalancer my-lbs --tcp=5678:8080
apiVersion: v1 kind: Service metadata: name: example-service spec: selector: app: example ports: - port: 8765 targetPort: 9376 type: LoadBalancer
Activities[edit]
- Understand difference between Ingress vs Load Balancer
- Understand the differences between:
kubectl create service loadbalancer
andkubectl expose deployment
Related[edit]
- Ingress
- NGINX Ingress Controller:
helm install nginx
- AWS Load Balancer Controller
kubectl describe service
[loadbalancer
]kubectl expose deployment: kubectl expose deployment mydeployment-name --type=LoadBalancer --name=mylbformydeployment
See also[edit]
kubectl create service loadbalancer
kubectl create service [ loadbalancer | clusterip | nodeport | extername ]
- Kubernetes services,
kubectl get services, kubectl describe service
,kubectl create service
[loadbalancer
|nodeport
|clusterip
|externalname ], kubectl expose
,headless service, service.beta.kubernetes.io
- Ingress controllers, NGINX Ingress Controller,
minikube addons enable ingress
,kubectl get ingress, kubectl get ingressclass, kubectl describe ingress
,Ingress:
, Ingress API, AWS Load Balancer Controller, Envoy Proxy, GKE Ingress, Kubernetes Gateway API,ingress.k8s.aws, ingresses.networking.k8s.io
,kind: Ingress
: (tls:, hosts:
),SuccessfullyReconciled
- Kubernetes LoadBalancer:
kubectl create service loadbalancer
Advertising: