k8s-Section 4-Service
2024-07-11
한어Русский языкEnglishFrançaisIndonesianSanskrit日本語DeutschPortuguêsΕλληνικάespañolItalianoSuomalainenLatina
Service
- Service associates the corresponding Pod through label
- The service lifecycle is not bound to the Pod, and the IP address will not change due to a Pod crash.
- Provides load balancing function, automatically forwarding traffic to different Pods
- Provide access ports outside the cluster
- The cluster can be accessed through the service name

Create a Service
kubectl apply -f service.yaml
kubectl get svc