GafaelfawrIngressPathService

pydantic model gafaelfawr.models.kubernetes.GafaelfawrIngressPathService

Service that serves a given path.

Parameters:

data (Any)

Show JSON schema
{
   "title": "GafaelfawrIngressPathService",
   "description": "Service that serves a given path.",
   "type": "object",
   "properties": {
      "name": {
         "title": "Name",
         "type": "string"
      },
      "port": {
         "anyOf": [
            {
               "$ref": "#/$defs/GafaelfawrServicePortName"
            },
            {
               "$ref": "#/$defs/GafaelfawrServicePortNumber"
            }
         ],
         "title": "Port"
      }
   },
   "$defs": {
      "GafaelfawrServicePortName": {
         "additionalProperties": false,
         "description": "Port for a service.",
         "properties": {
            "name": {
               "title": "Name",
               "type": "string"
            }
         },
         "required": [
            "name"
         ],
         "title": "GafaelfawrServicePortName",
         "type": "object"
      },
      "GafaelfawrServicePortNumber": {
         "additionalProperties": false,
         "description": "Port for a service.",
         "properties": {
            "number": {
               "title": "Number",
               "type": "integer"
            }
         },
         "required": [
            "number"
         ],
         "title": "GafaelfawrServicePortNumber",
         "type": "object"
      }
   },
   "required": [
      "name",
      "port"
   ]
}

Fields:
field name: str [Required]

Name of the service to which to route the request.

field port: GafaelfawrServicePortName | GafaelfawrServicePortNumber [Required]

Port to which to route the request.

to_kubernetes()

Convert to the Kubernetes API object.

Return type:

V1IngressServiceBackend