Complete the YAML to define a Kubernetes Service of type ExternalName.
apiVersion: v1
kind: Service
metadata:
name: my-service
spec:
type: [1]
externalName: example.comThe ExternalName service type maps the service to an external DNS name.
Complete the YAML to specify the external DNS name for the ExternalName service.
apiVersion: v1
kind: Service
metadata:
name: my-service
spec:
type: ExternalName
externalName: [1]The externalName field must be a valid DNS name, like example.com.
Fix the error in this ExternalName service YAML by completing the missing field.
apiVersion: v1
kind: Service
metadata:
name: my-service
spec:
type: ExternalName
[1]: example.comThe externalName field is required to specify the DNS name for ExternalName services.
Fill both blanks to create a valid ExternalName service YAML with correct type and externalName.
apiVersion: v1 kind: Service metadata: name: external-service spec: type: [1] externalName: [2]
The service type must be ExternalName and the externalName must be a DNS name like example.org.
Fill all three blanks to define an ExternalName service with name, type, and externalName fields.
apiVersion: v1 kind: Service metadata: name: [1] spec: type: [2] externalName: [3]
The service name is external-service, type is ExternalName, and externalName is a DNS name like external.example.com.