Skip to content

Connection ​

The connections.registry-proxy.kyma-project.io CustomResourceDefinition (CRD) describes the kind and the format of data used to manage Connections within Kyma. It facilitates establishing a connection to a target container registry through the Connectivity Proxy.

To get the up-to-date CRD in YAML format, run:

bash
kubectl get connections.registry-proxy.kyma-project.io -A -o yaml

Sample Custom Resource ​

The following Connection object creates a connection to a target registry through the Connectivity Proxy. proxyURL specifies the Connectivity Proxy's URL. targetHost defines the target registry's host.

yaml
apiVersion: registry-proxy.kyma-project.io/v1alpha1
kind: Connection
metadata:
  name: registry-proxy-example
spec:
  proxyURL: "http://connectivity-proxy.kyma-system.svc.cluster.local:20003"
  targetHost: "myregistry.kyma:25002"
  logLevel: debug

Custom Resource Parameters ​

connections.registry-proxy.kyma-project.io/v1alpha1 ​

Spec:

ParameterTypeDescription
proxyobjectSpecifies the connection to the proxy.
proxy.urlstringURL of the Connectivity Proxy, with protocol.
proxy.locationIDstringSets the SAP-Connectivity-SCC-Location_ID header with given ID on every forwarded request
target (required)objectSpecifies the connection to the target registry.
target.host (required)stringSpecifies the target host.
target.authorizationobjectSpecifies the authorization method for the connection
target.authorization.hoststringName of the host that is used for registry authorization
target.authorization.headerSecretstringName of the secret containing the authorization header to be used for the connection.
resourcesobjectDefines compute resource requirements for the Connection, such as CPU or memory.
logLevelstringSets the desired log level to be used. The default value is "info".
nodePortintegerSets the desired service NodePort number.

Status:

ParameterTypeDescription
nodePortintegerSpecifies the service NodePort number. Use localhost:<nodeport> to pull images.
proxyURLstringURL of the Connectivity Proxy.
conditions[]objectSpecifies an array of conditions describing the status of the Connection.

Status Reasons ​

Processing of a Connection CR can succeed, continue, or fail for one of these reasons:

ReasonTypeDescription
DeploymentCreatedConnectionDeployedA new Deployment referencing the Connection's configuration was created.
DeploymentUpdatedConnectionDeployedThe existing Deployment was updated after applying changes to the Connection's configuration.
DeploymentFailedConnectionDeployedThe Connection's Deployment failed due to an error.
InvalidProxyURLConnectionDeployedThe provided Proxy URL is invalid.
ConnectionResourcesDeployedConnectionReadyResources required for the Connection were successfully deployed.
ConnectionResourcesNotReadyConnectionReadyResources required for the Connection are not ready.
ConnectionEstablishedConnectionReadyThe Connection was successfully established.
ConnectionNotEstablishedConnectionReadyThe Connection could not be established.
ConnectionErrorConnectionReadyAn error occurred while processing the Connection.

These are the resources related to this CR:

Custom resourceDescription
DeploymentManages the Pods required for the Connection functionality.
ServiceExposes the Connection's Deployment as a network service inside the Kubernetes cluster.

These components use this CR:

ComponentDescription
Connection ControllerManages the lifecycle of the Connection CR and ensures the connection to the target registry is established.