Q: What is k8 service?
A: Its an abstraction over pods, which helps in managing sets of pods using selector labels and using only active pods.
Q: Types of services?
A: ClusertIP, NodePort and NodeBalancer
Q: Commands used to create a svc ?
A:
kubectl create svc service_name --tcp=cluster_port:pod_port
kubectl create svc nodePort service_name --
tcp=cluster_port:pod_port
kubectl create svc loadbalancer service_name --tcp=cluster_port:pod_port
Top comments (0)