OS
Schema Hub

ServiceReference

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

Schema URL
https://raw.githubusercontent.com/nlamirault/schema-hub/main/schemas/apiextensions.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/apiextensions.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

namestringRequired
name is the name of the service. Required
namespacestringRequired
namespace is the namespace of the service. Required
pathstring
path is an optional URL path at which the webhook will be contacted.
portinteger
port is an optional service port at which the webhook will be contacted. `port` should be a valid port number (1-65535, inclusive). Defaults to 443 for backward compatibility.