64.3k views
3 votes
Referring to the exhibit, which specification exposes the service on the node IP externally to the cluster? O port apiVersion: v1 kind: Service O type metadata: name: web-service O kind spec: type: NodePort O selector selector: app: web-app ports: - protocol: TCP port: 80 targetPort: 5000 nodePort: 31000

User AnKing
by
8.9k points

1 Answer

6 votes

A specification that exposes the service on the node IP externally to the cluster include the following: B. type.

YAML Ain't Markup Language (YAML) refers to a human-readable data serialization language that is designed and developed for use in writing configuration files and software applications, wherein data are stored or transmitted.

By critically observing the "type: NodePort" specification in the given exhibit (service resource), we can reasonably infer and logically deduce that the service would be exposed on each Internet Protocol (IP) node at a static port (NodePort), thereby, making the service externally accessible to the cluster by using the nodeIP:nodePort format.

Referring to the exhibit, which specification exposes the service on the node IP externally-example-1
User Ziad Adnan
by
8.6k points

Related questions