Write a slide in ASCIIdoc format that explains the basics of DNS in K8s as seen in…
- User
Write a slide in ASCIIdoc format that explains the basics of DNS in K8s as seen in https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/. Use the same formatting and background image as the example. Here is an example slide:
[background-image=backgrounds/bg-light-1.png] === Service: Exposing Pods to the Network
A Service defines a logical set of Pods and provides stable networking for accessing them. It acts as an abstraction layer over Pods, ensuring consistent communication even as Pods are created or destroyed.
- Load Balancing: Distributes traffic across Pods
- Stable Endpoint: Provides a fixed IP and DNS name for accessing Pods
- Types: ClusterIP, NodePort, LoadBalancer, and ExternalName
[source,yaml]
apiVersion: v1 kind: Service metadata: name: my-service spec: selector: app: nginx # Matches Pods with label "app=nginx" ports: - protocol: TCP port: 80 targetPort: 80 type: ClusterIP
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.