> For the complete documentation index, see [llms.txt](https://docs.cennso.com/components/cgw/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/components/cgw/latest/configuration/general-values.md).

# General configuration

This section describes root-level settings you can apply to the `values.yaml` file of the Connectivity Gateway (CGW) component. 
For more detailed configuration, follow the **Tutorials** section.

## sysctls

To set kernel parameters on the pod, add them to **.Values.sysctls**.
For example:

```yaml
sysctls:
  - name: net.ipv4.conf.all.forwarding
    value: "1"
  - name: net.ipv4.conf.all.rp_filter
    value: "2"
```

They render in the pod's `securityContext`. Gateway settings are normally
Kubernetes "unsafe" sysctls and must be allowed by the node's kubelet. See
[Kernel parameters](https://docs.cennso.com/components/cgw/latest/configuration/sysctls.md).

## Additional pod specifications

You can add pod specifications that are not yet defined. 
For example, for adding a `nodeSelector`, which is a part of the pod specification, add:

```yaml
additionalPodSpec:
  nodeSelector:
   ...
```

## Additional init containers

You can add additional init containers to the CGW deployment. For example:

```yaml
additionalInitContainers:
- name: print-env
  image: alpine
  imagePullPolicy: IfNotPresent
  command:
    - env
```

## Additional containers

You can add additional containers to the CGW deployment. For example:

```yaml
additionalContainers:
- name: sleep
  image: alpine
  imagePullPolicy: IfNotPresent
  command:
    - sleep
    - infinity
```

## Additional volumes

You can add additional volumes to the CGW deployment. 
See the example based on an already existing configMap:

```yaml
additionalVolumes:
  - name: custom-data
    configMap:
      name: my-custom-data
```

## Additional Services

You can add additional services to the CGW deployment, for example, to expose the ports of containers added using `additionalContainers`. See the example:

```yaml
additionalServices:
  - name: "foo"
    labels:
      foo: bar
    annotations:
      foo: bar
    spec:
      type: ClusterIP
      clusterIP: None
      ports:
        - port: 9998
          targetPort: 9998
          protocol: TCP
          name: foo
        - port: 9999
          targetPort: 9999
          protocol: TCP
          name: bar
```

## Additional pod annotations

Besides the default pod annotations, you can add additional pod annotations. 
See the example:

```yaml
additionalAnnoations:
  <Add your annotations here>
```

## Affinity and tolerations

You can use a node selector and tolerations for workload scheduling:

```yaml
nodeSelector:
  cgw-service: "true"

tolerations:
- key: "node-role"
  operator: "Equal"
  value: "cgw-services"
  effect: "NoSchedule"
```
