Kubernetes Service Generator - Create Service YAML
Generate Kubernetes Service manifests for ClusterIP, NodePort, LoadBalancer, and ExternalName types. Configure ports, selectors, and session affinity.
Selector Labels
Ports
Options
kubectl Commands
# Apply service
kubectl apply -f service.yaml
# Get service details
kubectl get svc my-service -n default
# Get endpoints
kubectl get endpoints my-service -n default
# Test service (from within cluster)
kubectl run tmp --rm -i --restart=Never --image=curlimages/curl -- \
curl http://my-service.default.svc.cluster.localService DNS
my-service.default.svc.cluster.localThis DNS name resolves to the Service ClusterIP within the cluster.