Item |
Type |
Example |
apiVersion |
String |
v1 |
kind |
String |
Service |
metadata.name |
String |
my-nginx-svc |
spec |
v1.ServiceSpec |
|
v1.ServiceSpec.selector |
Map of string |
env: test |
v1.ServiceSpec.ports |
Array[v1.ServicePort] |
|
v1.ServicePort.protocol |
String |
TCP |
v1.ServicePort.port |
Integer |
80 |
Please check the code bundle file minimal-conf-resource.yaml to find these three resources with minimal configuration.