TIS1504 - Gateway API Class Not Found in Configuration
The specified Gateway API Class is not found in the cluster configuration.
gatewayClassName References a Valid GatewayClassTo make sure your Gateway functions properly, update the gatewayClassName to reference a valid GatewayClass that has been configured in the cluster.
Examples
-
Gatewaywith Non-ExistentgatewayClassNameapiVersion: gateway.networking.k8s.io/v1alpha2
kind: Gateway
metadata:
name: my-gateway
namespace: example-namespace
spec:
gatewayClassName: "non-existent-class"
listeners:
- name: http
port: 80
protocol: HTTPExplanation: The
gatewayClassNamefield in theGatewayresource referencesnon-existent-class, but there is no correspondingGatewayClassconfigured in the cluster. This results in theGatewaybeing unusable since it cannot be linked to a valid class for managing network traffic.
Recommendation
Change the gatewayClassName field to reference an existing configured GatewayClass.
-
Update
gatewayClassNameto Reference an Existing GatewayClassUpdate the
gatewayClassNameto point to a validGatewayClassthat has been configured in the cluster.apiVersion: gateway.networking.k8s.io/v1alpha2
kind: Gateway
metadata:
name: my-gateway
namespace: example-namespace
spec:
gatewayClassName: "existing-class"
listeners:
- name: http
port: 80
protocol: HTTPExplanation: By changing the
gatewayClassNameto referenceexisting-class, which is a validGatewayClass, theGatewayresource can be properly utilized to route traffic according to the intended configuration. -
Verify the Availability of the
GatewayClassEnsure the
GatewayClassbeing referenced is available in the cluster. You can create or check existingGatewayClassdefinitions as needed.apiVersion: gateway.networking.k8s.io/v1alpha2
kind: GatewayClass
metadata:
name: existing-class
spec:
controllerName: "example.gateway.controller"Explanation: Ensuring that the
GatewayClassexists in the cluster allows theGatewayto use it effectively for network traffic management.