Exposes the service on a cluster-internal IP. Choosing this value makes the service only reachable from within the cluster.
kubectl expose deployment myapp --type=ClusterIP --port=8080
Exposes the service on each Node’s IP at a static port (the NodePort).
kubectl expose deployment myapp --type=NodePort --port=8080
Kubernetes provides DNS service for service discovery. All services are assigned a DNS name.
ping myapp.default.svc.cluster.local
An Ingress is a collection of rules that allow inbound connections to reach cluster services.
kubectl apply -f my-ingress.yaml
Creates an external Load Balancer and assigns a fixed, external IP to the service.
kubectl expose deployment myapp --type=LoadBalancer --port=80 --target-port=8080
Welcome to our comprehensive collection of programming language cheatsheets! Whether you're a seasoned developer or a beginner, these quick reference guides provide essential tips and key information for all major languages. They focus on core concepts, commands, and functions—designed to enhance your efficiency and productivity.
ManageEngine Site24x7, a leading IT monitoring and observability platform, is committed to equipping developers and IT professionals with the tools and insights needed to excel in their fields.
Monitor your IT infrastructure effortlessly with Site24x7 and get comprehensive insights and ensure smooth operations with 24/7 monitoring.
Sign up now!