> Markdown version of [Configuration](https://vaadin.com/docs/v23/tools/kubernetes/configuration). Section index: [llms.txt](https://vaadin.com/docs/v23/tools/llms.txt)

# Configuring Kubernetes Kit

## <a id="include-and-exclude-packages-to-be-inspected-during-serialization"></a>Include and Exclude Packages to be Inspected during Serialization

When a session is serialized, Kubernetes Kit inspects classes for transient fields that can be injected during deserialization (see [session replication](https://vaadin.com/docs/v23/tools/kubernetes/session-replication.md)).

Kubernetes Kit provides two properties to limit the packages to be inspected. The `include-package` property defines all of the packages that should be inspected. If this is undefined, all packages are assessed. For this reason, it is recommended that you specify the top-level package for your application in the `include-packages` property.

The `exclude-package` property lists packages that should not be assessed.

application.properties

```properties
vaadin.serialization.transients.include-packages=com.example.application
vaadin.serialization.transients.exclude-packages=com.example.application.service
```

application.yaml

```yaml
vaadin:
  serialization:
    transients:
      include-packages: com.example.application
      exclude-packages: com.example.application.service
```

## <a id="use-hazelcast-for-session-replication"></a>Use Hazelcast for Session Replication

The `service-name` property defines the name of the Hazelcast service deployment within a cluster.

The optional `namespace` property is used when the Hazelcast service is deployed in a namespace other than `default`.

application.properties

```properties
vaadin.kubernetes.hazelcast.service-name=hazelcast-service
vaadin.kubernetes.hazelcast.namespace=namespace
```

application.yaml

```yaml
vaadin:
  kubernetes:
    hazelcast:
      service-name: hazelcast-service
      namespace: namespace
```

## <a id="use-redis-for-session-replication"></a>Use Redis for Session Replication

This property defines the name of the Redis service deployment within a cluster.

application.properties

```properties
spring.redis.host: redis-service
```

application.yaml

```yaml
spring:
  redis:
    host: redis-service
```
