Skip to content

Latest commit

 

History

History
66 lines (50 loc) · 4.09 KB

00-10-overview-api-gateway-controller.md

File metadata and controls

66 lines (50 loc) · 4.09 KB

APIGateway Controller

Overview

APIGateway Controller is part of Kyma API Gateway Operator. Its role is to manage the installation of Ory Oathkeeper and handle the configuration of Kyma Gateway and the resources defined by the APIGateway custom resource (CR). The controller is responsible for:

  • Installing, upgrading, and uninstalling Ory Oathkeeper
  • Configuring Kyma Gateway
  • Managing Certificates and DNS entries
  • Configuring Istio Gateways

APIGateway CR

The apigateways.operator.kyma-project.io CustomResourceDefinition (CRD) describes the APIGateway CR that is used to manage the API Gateway resources. To learn more, read the APIGateway CR documentation.

Status Codes

Code Description
Ready Controller finished reconciliation.
Processing Controller is reconciling resources.
Deleting Controller is deleting resources.
Error An error occurred during reconciliation.
Warning Controller is misconfigured.

Conditions:

CR state Type Status Reason Message
Ready Ready Unknown ReconcileProcessing Reconciliation processing
Ready Ready True ReconcileSucceeded Reconciliation succeeded
Error Ready False ReconcileFailed Reconciliation failed
Error Ready False OlderCRExists API Gateway CR is not the oldest one and does not represent the module state
Error Ready False CustomResourceMisconfigured API Gateway CR has invalid configuration
Error Ready False DependenciesMissing Module dependencies missing
Processing Ready False KymaGatewayReconcileSucceeded Kyma Gateway reconciliation succeeded
Error Ready False KymaGatewayReconcileFailed Kyma Gateway reconciliation failed
Warning Ready False KymaGatewayDeletionBlocked Kyma Gateway deletion blocked because of the existing custom resources: ...
Processing Ready False OathkeeperReconcileSucceeded Ory Oathkeeper reconciliation succeeded
Error Ready False OathkeeperReconcileFailed Ory Oathkeeper reconciliation failed
Warning Ready False DeletionBlockedExistingResources API Gateway deletion blocked because of the existing custom resources: ...

Labeling Resources

In accordance with the decision Consistent Labeling of Kyma Modules, the APIGateway Operator resources use the standard Kubernetes labels:

kyma-project.io/module: api-gateway
app.kubernetes.io/name: api-gateway-operator
app.kubernetes.io/instance: api-gateway-operator-default
app.kubernetes.io/version: "x.x.x"
app.kubernetes.io/component: operator
app.kubernetes.io/part-of: api-gateway

All other resources, such as the external ory-oathkeeper component and its respective resources, use only the Kyma module label:

kyma-project.io/module: api-gateway

Run this command to get all resources created by the API Gateway module:

kubectl get all|<resources-kind> -A -l kyma-project.io/module=api-gateway