# io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.ServiceReference

From **Kubernetes**.

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

- Type: `object`

## Properties

### `name`

- Required: true
- Type: `string`

name is the name of the service. Required

### `namespace`

- Required: true
- Type: `string`

namespace is the namespace of the service. Required

### `path`

- Required: false
- Type: `string`

path is an optional URL path at which the webhook will be contacted.

### `port`

- Required: false
- Type: `integer`
- Format: `int32`

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.

## JSON Schema

```json
{"description":"ServiceReference holds a reference to Service.legacy.k8s.io","properties":{"name":{"default":"","description":"name is the name of the service. Required","type":"string"},"namespace":{"default":"","description":"namespace is the namespace of the service. Required","type":"string"},"path":{"description":"path is an optional URL path at which the webhook will be contacted.","type":"string"},"port":{"description":"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.","format":"int32","type":"integer"}},"required":["namespace","name"],"type":"object"}
```
