> For the complete documentation index, see [llms.txt](https://docs.cennso.com/components/cgw/1.8/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/1.8/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 expose `sysctl` settings for the security context of the pod, add them to **.Value.sysctls**.
For example:

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

## 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>
```

### Enable IPv6 routing

You can use the additional pod annotations to enable IPv6 routing by setting:

```yaml
additionalAnnotations:
  security.alpha.kubernetes.io/unsafe-sysctls: net.ipv6.conf.default.forwarding=1,net.ipv6.conf.all.forwarding=1
```

## 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"
```
