Difference between revisions of "Kubectl create service loadbalancer"
Jump to navigation
Jump to search
Line 4: | Line 4: | ||
[[kubectl create service]] loadbalancer | [[kubectl create service]] loadbalancer | ||
+ | |||
+ | apiVersion: v1 | ||
+ | kind: Service | ||
+ | metadata: | ||
+ | name: example-service | ||
+ | spec: | ||
+ | selector: | ||
+ | app: example | ||
+ | ports: | ||
+ | - port: 8765 | ||
+ | targetPort: 9376 | ||
+ | type: LoadBalancer | ||
Revision as of 13:22, 9 December 2022
https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#-em-service-loadbalancer-em-
kubectl create service loadbalancer
apiVersion: v1 kind: Service metadata: name: example-service spec: selector: app: example ports: - port: 8765 targetPort: 9376 type: LoadBalancer
Related
See also
- 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: