> For the complete documentation index, see [llms.txt](https://docs.cennso.com/cennso/netcap/latest/llms.txt) (all documentation: [llms.txt](https://docs.cennso.com/llms.txt)). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cennso.com/cennso/netcap/latest/technical-reference/crds/providerconfigs.md).

# ProviderConfig Custom Resource Definition

`ProviderConfig` Custom Resource (CR) is used to pass configuration parameters to NetCap Provider. Currently, only a single `ProviderConfig` object with the name **default** is allowed.

Using the `ProviderConfig` CR, you can configure these options:

* Limits on the number of interface captures per Core Cluster
* Parameters for the NATS connection

You can change the configuration dynamically at runtime. By default, the `ProviderConfig` resource is not created.

## Configuration example

### Limits on the number of interface captures

By default, there is no limit on the number of interface captures per Core Cluster. However, if you set a limit and it is exceeded, the new resource is marked as `failed` until other resources are completed. After that, the failed resources are retried in the order they were created.

See the configuration example to set a limit on the number of interface captures per Core Cluster:

```yaml
apiVersion: netcap.cennso.com/v1alpha1
kind: ProviderConfig
metadata:
  name: default
spec:
  limits:
    cluster:
      interfaceCaptures: 3
```

### Parameters for the NATS connection

See the configuration example on setting your own NATS deployment for NetCap Provider:

```yaml
apiVersion: netcap.cennso.com/v1alpha1
kind: ProviderConfig
metadata:
  name: default
spec:
  nats:
    configBucketName: other-netcap-config-bucket
    statusBucketName: other-netcap-status-bucket
    url: nats://nats:4222
    controlJetStreamDomain: testDomain
    userCredentials:
      name: credentials-secret-name
      namespace: credentials-secret-namespace
```

## Configuration parameters

These are all parameters used in the `ProviderConfig` CR definition:

**CRD specification:** [netcap.cennso.com_providerconfigs.yaml](https://docs.cennso.com/api/spec/cennso/netcap/latest/assets/crds/netcap.cennso.com_providerconfigs.yaml?form=bundled&kind=crd)
