OS
Schema Hub

ServiceReference

ServiceReference holds a reference to Service.legacy.k8s.io

Schema URL
https://raw.githubusercontent.com/nlamirault/schema-hub/main/schemas/apiregistration.api.k8s.io/ServiceReference_v1.json
Usage examples
VS Code / yaml-language-server
# yaml-language-server: $schema=https://raw.githubusercontent.com/nlamirault/schema-hub/main/schemas/apiregistration.api.k8s.io/ServiceReference_v1.json
kubeconform
kubeconform -schema-location 'https://raw.githubusercontent.com/nlamirault/schema-hub/main/schemas/{{ .Group }}/{{ .ResourceKind }}_{{ .ResourceAPIVersion }}.json' manifest.yaml

Resource Structure

namestring
Name is the name of the service
namespacestring
Namespace is the namespace of the service
portinteger
If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive).