Skip to content

APIGateway Custom Resource ​

The apigateways.operator.kyma-project.io CustomResourceDefinition (CRD) describes the kind and the format of data that APIGateway Controller uses to configure the API Gateway resources. Applying the custom resource (CR) triggers the installation of API Gateway resources, and deleting it triggers the uninstallation of those resources. The default CR has the name default.

To get the up-to-date CRD in the yaml format, run the following command:

shell
kubectl get crd apigateways.operator.kyma-project.io -o yaml

You are only allowed to have one APIGateway CR. If there are multiple APIGateway CRs in the cluster, the oldest one reconciles the module. Any additional APIGateway CR is placed in the Warning state.

Specification ​

This table lists the parameters of the given resource together with their descriptions:

Spec:

FieldRequiredDescription
enableKymaGatewayNOSpecifies whether the default Kyma Gateway, named kyma-gateway, should be created in the kyma-system namespace.

Status:

ParameterTypeDescription
state (required)stringSignifies the current state of CustomObject. Its value can be either Ready, Processing, Error, Warning, or Deleting.
conditions[]objectRepresents the current state of the CR's conditions.
conditions.lastTransitionTimestringDefines the date of the last condition status change.
conditions.messagestringProvides more details about the condition status change.
conditions.reasonstringDefines the reason for the condition status change.
conditions.status (required)stringRepresents the status of the condition. The value is either True, False, or Unknown.
conditions.typestringProvides a short description of the condition.

APIGateway CR's State ​

CodeDescription
ReadyAPIGateway Controller finished reconciliation.
ProcessingAPIGateway Controller is reconciling resources.
DeletingAPIGateway Controller is deleting resources.
ErrorAn error occurred during the reconciliation. The error is rather related to the API Gateway module than the configuration of your resources.
WarningAn issue occurred during the reconciliation that requires your attention. Check the status.description message to identify the issue and make the necessary corrections to the APIGateway CR or any related resources.

APIGateway CR's Status Conditions ​

CR stateTypeStatusReasonMessage
ReadyReadyUnknownReconcileProcessingReconciliation processing.
ReadyReadyTrueReconcileSucceededReconciliation succeeded.
ErrorReadyFalseReconcileFailedReconciliation failed.
ErrorReadyFalseOlderCRExistsAPIGateway CR is not the oldest one and does not represent the module state.
ErrorReadyFalseCustomResourceMisconfiguredAPIGateway CR has invalid configuration.
ErrorReadyFalseDependenciesMissingModule dependencies missing.
ProcessingReadyFalseKymaGatewayReconcileSucceededKyma Gateway reconciliation succeeded.
ErrorReadyFalseKymaGatewayReconcileFailedKyma Gateway reconciliation failed.
WarningReadyFalseKymaGatewayDeletionBlockedKyma Gateway deletion blocked because of the existing custom resources: ...
ProcessingReadyFalseOathkeeperReconcileSucceededOry Oathkeeper reconciliation succeeded.
ErrorReadyFalseOathkeeperReconcileFailedOry Oathkeeper reconciliation failed.
WarningReadyFalseDeletionBlockedExistingResourcesAPI Gateway deletion blocked because of the existing custom resources: ...