Which TWO of the following are valid ways to expose a set of pods as a network service within a Kubernetes cluster?
Trap 1: Create a StatefulSet with pod hostnames.
StatefulSet provides identity, not network service exposure.
Trap 2: Create a Service of type ExternalName.
ExternalName maps to an external DNS, not to pods.
Trap 3: Create a ConfigMap with pod IPs.
ConfigMap does not expose pods as a service.
- A
Create a StatefulSet with pod hostnames.
Why wrong: StatefulSet provides identity, not network service exposure.
- B
Create a Service of type ExternalName.
Why wrong: ExternalName maps to an external DNS, not to pods.
- C
Create a ConfigMap with pod IPs.
Why wrong: ConfigMap does not expose pods as a service.
- D
Create a Service of type ClusterIP.
ClusterIP exposes pods internally.
- E
Create an Ingress resource that routes to a Service.
Ingress exposes HTTP/HTTPS to Services.