Status in Konnect

Related Documentation

Status fields

Each Kubernetes resource that is mapped to a Konnect entity has several fields that indicate its status in Konnect.

Konnect native objects

Objects that are native to Konnect have the following status fields:

  • id is the unique identifier of the Konnect entity as assigned by the Konnect API. If it’s unset (empty string), it means the Konnect entity hasn’t been created yet.
  • serverURL is the URL of the Konnect server in which the entity exists.
  • organizationID is the ID of Konnect org that this entity has been created in.

To inspect these fields:

kubectl get $RESOURCE_TYPE $RESOURCE_NAME -o yaml | yq '.status'

Example output:

conditions:
  ...
id: 7dcf6756-b2e7-4067-a19b-111111111111
organizationID: 5ca26716-02f7-4430-9117-111111111111
serverURL: https://us.api.konghq.com

These objects are defined under the konnect.konghq.com API group.

Kong Gateway configuration objects

Resources like KongConsumer, KongService, KongRoute, and KongPlugin configure Kong Gateway and are not native to Konnect. These are defined under the configuration.konghq.com API group and may be used with other controllers, such as Kong Ingress Controller.

When managed by Kong Operator for Konnect, Konnect-specific status fields appear under .status.konnect:

  • controlPlaneID: The ID of the associated Konnect control plane.
  • id: The unique ID assigned by the Konnect API. If empty, the entity hasn’t been created.
  • serverURL: The URL of the Konnect server where the entity resides.
  • organizationID: The org ID under which the entity was created.

To inspect these fields:

kubectl get $RESOURCE_TYPE $RESOURCE_NAME -o yaml | yq '.status.konnect'

Example output:

controlPlaneID: 7dcf6756-b2e7-4067-a19b-111111111111
id: 7dcf6756-b2e7-4067-a19b-111111111111
organizationID: 5ca26716-02f7-4430-9117-111111111111
serverURL: https://us.api.konghq.com

Status conditions

Resources also report status.conditions, where each condition carries a reason that explains the current state.

ConfigStoreRefValid on KongVault v2.3+

The KongVault reports the outcome of the reference in the ConfigStoreRefValid condition:

kubectl get kongvault $VAULT_PREFIX -o jsonpath-as-json="{.status.conditions[?(@.type=='ConfigStoreRefValid')]}"

Reason

Meaning

Valid The referenced KonnectConfigStore is programmed and its ID was used as the config_store_id.
NotProgrammed The KonnectConfigStore exists but hasn’t been created in Konnect yet, so its ID is unknown. This resolves on its own once the Config Store is programmed.
RefNotPermitted No KongReferenceGrant in the Config Store’s namespace allows the reference. Check that the grant’s from entry names the KongVault kind with an empty namespace.
Invalid The reference can’t be used at all, for example because the KonnectConfigStore doesn’t exist, the vault backend isn’t konnect, or spec.config also sets config_store_id. The condition message names the cause, and fixing it requires a spec change.

While the reference is unresolved, Kong Operator doesn’t push the KongVault to Konnect, so that a Vault is never created with a missing or wrong Config Store ID.

DeletionBlocked on KonnectConfigStore v2.4+

A KonnectConfigStore that still holds secrets isn’t deleted from Konnect. It stays in Terminating and reports Programmed=False with reason DeletionBlocked:

kubectl get konnectconfigstore $CONFIG_STORE_NAME -n $NAMESPACE -o jsonpath-as-json="{.status.conditions[?(@.type=='Programmed')]}"

Kong Operator retries periodically, and the deletion proceeds once you remove the secrets from the Config Store in Konnect. For more information, see lifecycle and deletion.

KonnectConfigStoreSync conditions v2.4+

A KonnectConfigStoreSync always reports four conditions:

  • ConfigStoreRefValid: whether the referenced KonnectConfigStore exists, is programmed, and is allowed by a KongReferenceGrant if it’s in another namespace.
  • SecretRefValid: whether the referenced Secret exists and is allowed by a KongReferenceGrant if it’s in another namespace. A Secret without the konghq.com/secret: "true" label is reported as NotFound.
  • PairValid: whether the certificate and key in the Secret form a valid pair. It’s always NotApplicable in Split mode.
  • Synced: whether every entry is up to date in the Config Store.

To check why a KonnectConfigStoreSync isn’t Synced:

kubectl get konnectconfigstoresync $CONFIG_STORE_NAME -n $NAMESPACE -o jsonpath-as-json="{.status.conditions[?(@.type=='Synced')]}"

Reason

Meaning

AllEntriesUpToDate Every entry is synced. The condition status is True.
WaitingForConfigStore The referenced KonnectConfigStore doesn’t exist, isn’t programmed yet, or isn’t allowed by a KongReferenceGrant. Check the ConfigStoreRefValid condition.
SecretRefInvalid The referenced Secret is missing, isn’t allowed by a KongReferenceGrant, or lacks a mapped field. Check the SecretRefValid condition. The entries already in the Config Store are kept.
PairMismatch The certificate or key is malformed, or they don’t match. Nothing is written until the Secret holds a valid pair.
ValueTooLarge An entry value exceeds 5120 bytes. In Combined mode, the limit applies to the JSON object that holds both PEM values.
KeyTooLong A store key exceeds 512 bytes. This can happen with a derived key built from a long namespace, name, or Split field name. Use shorter names, or set an explicit, shorter store key in a new KonnectConfigStoreSync, because store keys are immutable once set.
KeyConflict Another entry or another KonnectConfigStoreSync uses the same store key in the same Config Store. The oldest sync keeps the key. Use a different store key.
PushFailed The Konnect API request failed. The condition message contains the error.
EntryInUse The sync is being deleted with deletionPolicy: Delete, but a KongCertificate still references one of its entries. Remove the reference, or set deletionPolicy: Orphan to keep the entries.
ConfigStoreDeletionBlocked The referenced KonnectConfigStore is being deleted, so the sync doesn’t write or delete entries. Remove the secrets from the Config Store in Konnect to let the deletion proceed.

Private endpoint conditions

When a KonnectAPIAuthConfiguration uses a private serverURL, for example to connect over AWS PrivateLink, Kong Operator doesn’t start a component with a configuration that would send its traffic over the public internet. Instead, it holds the component, which means it stops applying changes to it, and reports one of the following conditions:

Resource

Condition and reason

Meaning

KonnectAPIAuthConfiguration APIAuthValid=False, Invalid The serverURL host isn’t under an allowed Konnect domain, so Kong Operator doesn’t send a request to it. The message names the allowed domains. They default to konghq.com and konghq.tech. You set them with the --konnect-server-url-domains flag.
KonnectExtension Ready=False, InvalidEndpoint An endpoint for the Kong Ingress Controller in Konnect has a path. There’s no private route for its API yet.
KonnectExtension Ready=False, EndpointMismatch The serverURL has a path, but Konnect returned public endpoints because it doesn’t return private endpoints for this geo yet. The condition clears on its own once Konnect returns private endpoints for the geo.
AIGatewayDataPlane KonnectAIGatewayResolved=False, EndpointMismatch The serverURL and the endpoints that Konnect returned don’t match, or an endpoint has a path. AI Gateway data planes can’t use private endpoints yet.
KegDataPlane KonnectEventGatewayResolved=False, EndpointMismatch The serverURL of the KonnectEventGateway has a path. Kong Event Gateway data planes can’t use a path. Setting spec.config.konnect.domain on the KegDataPlane skips the check, but the data plane then connects over the public internet.

A held data plane keeps serving traffic. Until the condition clears, Kong Operator doesn’t apply spec, image, or certificate changes to it, and doesn’t deploy a data plane that isn’t deployed yet.

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!