Skip to main content

CDK8s Valheim

This is a CDK8s project that defines a Kubernetes deployment for Valheim using the lloesche/valheim-server image.

Use

A default deployment can be created with:

new ValheimChart(app, 'valheim')

Default deployment will produce a server configured with all default environment variables. The container will request resources for the games minimum recommended specs of 2 CPU and 4GB of memory.

Settings can be customized by passing in a ValheimChartProps object. This will allow you to configure all supported environment customizations and container configurations

new ValheimChart(app, 'valheim', {
  server: {
    name: 'K8S Valheim',
    worldName: 'K8S',
    password: {
      raw: 'password',
    },
  },
})

Persistence

By default, the server will store its data on a host path. This is not recommended as your world data can easily be lost.

This chart allows for storing the data on a PersistentVolumeClaim. Two pvcs can be created, one for the world data and one for the configuration. The world data is mounted at /opt/valheim/data directory and the configuration is mounted at /config directory.

To create these, the PVCs can be configured as follows:

new ValheimChart(app, 'valheim'. {
    persistence: {
    server: {
      storageClass: "my-class",
    },
    config: {
      storageClass: "my-class",
    },
  },
})

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cdk8s-valheim-0.0.270.tar.gz (55.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cdk8s_valheim-0.0.270-py3-none-any.whl (53.2 kB view details)

Uploaded Python 3

File details

Details for the file cdk8s-valheim-0.0.270.tar.gz.

File metadata

  • Download URL: cdk8s-valheim-0.0.270.tar.gz
  • Upload date:
  • Size: 55.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.1

File hashes

Hashes for cdk8s-valheim-0.0.270.tar.gz
Algorithm Hash digest
SHA256 fe3a0309e7820d3ef5b3a37a7b2cb17e4b09f06bb87cce93ddd618090be30602
MD5 ad7201e50d531fe4da8f94a46665ee3f
BLAKE2b-256 98a7678eceab10b20d191367c3672cb3b34e485e1e3b27fdeba30682b6cd2b31

See more details on using hashes here.

File details

Details for the file cdk8s_valheim-0.0.270-py3-none-any.whl.

File metadata

File hashes

Hashes for cdk8s_valheim-0.0.270-py3-none-any.whl
Algorithm Hash digest
SHA256 2b3417a5ca1fcc6a28c1cce0d33d59ff9ec4a681da61b7de18d8332b10967fb1
MD5 8bd75b259c3b8e5d096504ef6c514a42
BLAKE2b-256 9db55216359547c1b699985e4bf7a9e47f227f6fda9ee28cd7f5fe900ab56dfb

See more details on using hashes here.

Release history Release notifications | RSS feed

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page