How can you expose a Kubernetes deployment to external traffic?
a) By using a DaemonSet
b) By creating a Service of type LoadBalancer or NodePort
c) By creating a StatefulSet
d) By using etcd
Answer:
b) By creating a Service of type LoadBalancer or NodePort
Explanation:
You can expose a Kubernetes deployment to external traffic by creating a Service of type LoadBalancer
or NodePort
to allow access from outside the cluster.