# io.k8s.api.admissionregistration.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 which will be sent in any request to this service.

### `port`

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

port is the port on the service that hosts the webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive).

## 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 which will be sent in any request to this service.","type":"string"},"port":{"description":"port is the port on the service that hosts the webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive).","format":"int32","type":"integer"}},"required":["namespace","name"],"type":"object"}
```
