diff --git a/README.md b/README.md index 731e94a..41a8394 100644 --- a/README.md +++ b/README.md @@ -105,7 +105,7 @@ Follow the steps in the [README.md here](k8s/readme.md) to deploy it. #### Using helm chart -Follow up the docs on the [README.md for the helm chart](./chart/README.md) to deploy. +Follow up the docs on the [README.md for the helm chart](./charts/README.md) to deploy. ### Environment variables diff --git a/charts/README.md b/charts/README.md new file mode 100644 index 0000000..81d7b7f --- /dev/null +++ b/charts/README.md @@ -0,0 +1,32 @@ +# Palworld Helm Chart + +Allows you to deploy the usage of [Palworld Server docker](https://github.com/Filipe-Souza/palworld-server-docker) as +a helm chart and with helm deployments. + +This is an advanced method of installation and can be quite difficult to non-technical trying to set it up. + +## Dependencies + +You will need the [Helm client](https://helm.sh/docs/intro/install/) and a Kubernetes cluster. + +## Install the chart + +There is no helm package available yet, so you need to clone this repo and setup it manually, or with some GitOps tool +like ArgoCD/FluxCD. + +After cloning the repository, you can create a new file, e.g.: values.override.yaml to store your custom values. + +After copying, modify your values.override.yaml as needed. You can look up the +[values summary](VALUES_SUMMARY.md) to see the parameter documentation. + +After that, you can apply the chart: + +```bash +helm install --create-namespace --namespace palworld palworld chart/ --values values.override.yaml +``` + +You can remove all the resources created (except the PVC) with the following command: + +```bash +helm uninstall -n palworld palworld +``` diff --git a/charts/palworld/README.md b/charts/palworld/README.md index 81d7b7f..49d3222 100644 --- a/charts/palworld/README.md +++ b/charts/palworld/README.md @@ -1,32 +1,68 @@ -# Palworld Helm Chart +# palworld -Allows you to deploy the usage of [Palworld Server docker](https://github.com/Filipe-Souza/palworld-server-docker) as -a helm chart and with helm deployments. +![Version: 0.0.0](https://img.shields.io/badge/Version-0.0.0-informational) +![Type: application](https://img.shields.io/badge/Type-application-informational) +![AppVersion: latest](https://img.shields.io/badge/AppVersion-latest-informational) -This is an advanced method of installation and can be quite difficult to non-technical trying to set it up. +This chart can provide an rAthena emulator installation on a Kubernetes cluster. -## Dependencies +**Homepage:** -You will need the [Helm client](https://helm.sh/docs/intro/install/) and a Kubernetes cluster. +## Maintainers -## Install the chart +| Name | Email | Url | +| ---- | ------ | --- | +| Filipe Souza | | | -There is no helm package available yet, so you need to clone this repo and setup it manually, or with some GitOps tool -like ArgoCD/FluxCD. +## Source Code -After cloning the repository, you can create a new file, e.g.: values.override.yaml to store your custom values. +* -After copying, modify your values.override.yaml as needed. You can look up the -[values summary](VALUES_SUMMARY.md) to see the parameter documentation. +## Values -After that, you can apply the chart: +| Key | Type | Default | Description | +|-----|------|---------|-------------| +| namespace | string | `"palworld"` | Namespace where the resources will be created | +| server | dict | | The server configuration | +| server.annotations | object | `{}` | Additional annotations to the resources | +| server.config | dict | | Change the game server configuration. If you change those, make sure to change the service.ports and server.ports accordingly. Those are directly connected with the container image, providing multiple environment variables to the scripts. | +| server.config.annotations | object | `{}` | Additional annotations to the resources | +| server.config.community.enable | bool | `true` | Enables/disables the visibility of this server on Steam community servers list. | +| server.config.community.password | string | `""` | If not provided, a random password will be generated and stored on the secret. | +| server.config.labels | object | `{}` | Additional labels to the resources | +| server.config.max_players | int | `16` | The max number of players supported. | +| server.config.multithreading | bool | `true` | Enables the multithreading, allowing the usage of up to 4 cores (needs citation) | +| server.config.query_port | string | `27015` | The query port of the game. | +| server.config.rcon | dict | | Remote connection configuration. Allows the remote connection and management for the server. Those are directly connected with the container image, providing multiple environment variables to the scripts. | +| server.config.rcon.enable | bool | `true` | Enables/disables the rcon port. | +| server.config.rcon.password | string | `""` | If not provided, a random password will be generated and stored on the secret. | +| server.config.rcon.port | string | `25575` | The port for rcon. If you change this, make sure to change the service.ports and server.ports accordingly. | +| server.image | dict | | Define the parameters for the server image container | +| server.image.imagePullPolicy | string | `"IfNotPresent"` | Define the pull policy for the server image. | +| server.image.name | string | `"thijsvanloef/palworld-server-docker"` | Name of the image, without the tag. | +| server.image.tag | string | `"latest"` | The tag of the image. | +| server.labels | object | `{}` | Additional labels to the resources | +| server.ports | dict | | Change the ports to be mapped to the pod. If you change those, make sure to change the service.ports and server.config accordingly. | +| server.ports[0] | dict | `{"containerPort":8211,"name":"game","protocol":"UDP"}` | The "game" port definition. If you change this, make sure to change the service.ports.game and server.config accordingly. | +| server.ports[1] | dict | `{"containerPort":27015,"name":"query","protocol":"UDP"}` | The "query" port definition . If you change this, make sure to change the service.ports.query_port and server.config accordingly. | +| server.ports[2] | dict | `{"containerPort":25575,"name":"rcon","protocol":"UDP"}` | The "rcon" port definition . If you change this, make sure to change the service.ports.rcon and server.config accordingly. | +| server.resources | dict | `{"limits":{"cpu":4,"memory":"12Gi"},"requests":{"cpu":4,"memory":"8Gi"}}` | Resources limits for the container. | +| server.service | dict | | Change the service configuration. If you change those, make sure to change the server.config and server.ports accordingly. | +| server.service.annotations | object | `{}` | Additional annotations to the resources | +| server.service.enabled | bool | `true` | Enables the creation of the service component. | +| server.service.healthz | dict | `{"enabled":false,"name":"healthz","port":80,"protocol":"TCP","targetPort":80}` | The "healthz" definition . Use if you need to create a TCP health check for load balancers on cloud services. | +| server.service.labels | object | `{}` | Additional labels to the resources | +| server.service.ports | dict | | Change the ports to be mapped to the service. If you change those, make sure to change the server.config and server.ports accordingly. | +| server.service.ports[0] | dict | `{"name":"game","port":8211,"protocol":"UDP","targetPort":8211}` | The "game" port definition. If you change this, make sure to change the server.ports.game and server.config.port accordingly. | +| server.service.ports[1] | dict | `{"name":"query","port":27015,"protocol":"UDP","targetPort":27015}` | The "query" port definition . If you change this, make sure to change the server.ports.query and server.config.query_port accordingly. | +| server.service.ports[2] | dict | `{"name":"rcon","port":25575,"protocol":"UDP","targetPort":25575}` | The "rcon" port definition . If you change this, make sure to change the server.ports.rcon and server.config.rcon.port accordingly. | +| server.service.type | string | `"LoadBalancer"` | The type of service to be created. | +| server.storage | dict | `{"external":false,"externalName":"","preventDelete":false,"size":"12Gi","storageClassName":""}` | Define some parameters for the storage volume | +| server.storage.external | bool | `false` | Define if it will use an existing PVC containing the installation data. | +| server.storage.externalName | bool | `""` | The external PVC name to use. | +| server.storage.preventDelete | bool | `false` | Keeps helm from deleting the PVC. By default, helm does not delete pvcs. | +| server.storage.size | string | `"12Gi"` | The size of the pvc storage. | +| server.storage.storageClassName | string | `""` | The storage class name. | -```bash -helm install --create-namespace --namespace palworld palworld chart/ --values values.override.yaml -``` - -You can remove all the resources created (except the PVC) with the following command: - -```bash -helm uninstall -n palworld palworld -``` +---------------------------------------------- +Autogenerated from chart metadata using [helm-docs v1.12.0](https://github.com/norwoodj/helm-docs/releases/v1.12.0) diff --git a/charts/palworld/VALUES_SUMMARY.md b/charts/palworld/VALUES_SUMMARY.md deleted file mode 100644 index 49d3222..0000000 --- a/charts/palworld/VALUES_SUMMARY.md +++ /dev/null @@ -1,68 +0,0 @@ -# palworld - -![Version: 0.0.0](https://img.shields.io/badge/Version-0.0.0-informational) -![Type: application](https://img.shields.io/badge/Type-application-informational) -![AppVersion: latest](https://img.shields.io/badge/AppVersion-latest-informational) - -This chart can provide an rAthena emulator installation on a Kubernetes cluster. - -**Homepage:** - -## Maintainers - -| Name | Email | Url | -| ---- | ------ | --- | -| Filipe Souza | | | - -## Source Code - -* - -## Values - -| Key | Type | Default | Description | -|-----|------|---------|-------------| -| namespace | string | `"palworld"` | Namespace where the resources will be created | -| server | dict | | The server configuration | -| server.annotations | object | `{}` | Additional annotations to the resources | -| server.config | dict | | Change the game server configuration. If you change those, make sure to change the service.ports and server.ports accordingly. Those are directly connected with the container image, providing multiple environment variables to the scripts. | -| server.config.annotations | object | `{}` | Additional annotations to the resources | -| server.config.community.enable | bool | `true` | Enables/disables the visibility of this server on Steam community servers list. | -| server.config.community.password | string | `""` | If not provided, a random password will be generated and stored on the secret. | -| server.config.labels | object | `{}` | Additional labels to the resources | -| server.config.max_players | int | `16` | The max number of players supported. | -| server.config.multithreading | bool | `true` | Enables the multithreading, allowing the usage of up to 4 cores (needs citation) | -| server.config.query_port | string | `27015` | The query port of the game. | -| server.config.rcon | dict | | Remote connection configuration. Allows the remote connection and management for the server. Those are directly connected with the container image, providing multiple environment variables to the scripts. | -| server.config.rcon.enable | bool | `true` | Enables/disables the rcon port. | -| server.config.rcon.password | string | `""` | If not provided, a random password will be generated and stored on the secret. | -| server.config.rcon.port | string | `25575` | The port for rcon. If you change this, make sure to change the service.ports and server.ports accordingly. | -| server.image | dict | | Define the parameters for the server image container | -| server.image.imagePullPolicy | string | `"IfNotPresent"` | Define the pull policy for the server image. | -| server.image.name | string | `"thijsvanloef/palworld-server-docker"` | Name of the image, without the tag. | -| server.image.tag | string | `"latest"` | The tag of the image. | -| server.labels | object | `{}` | Additional labels to the resources | -| server.ports | dict | | Change the ports to be mapped to the pod. If you change those, make sure to change the service.ports and server.config accordingly. | -| server.ports[0] | dict | `{"containerPort":8211,"name":"game","protocol":"UDP"}` | The "game" port definition. If you change this, make sure to change the service.ports.game and server.config accordingly. | -| server.ports[1] | dict | `{"containerPort":27015,"name":"query","protocol":"UDP"}` | The "query" port definition . If you change this, make sure to change the service.ports.query_port and server.config accordingly. | -| server.ports[2] | dict | `{"containerPort":25575,"name":"rcon","protocol":"UDP"}` | The "rcon" port definition . If you change this, make sure to change the service.ports.rcon and server.config accordingly. | -| server.resources | dict | `{"limits":{"cpu":4,"memory":"12Gi"},"requests":{"cpu":4,"memory":"8Gi"}}` | Resources limits for the container. | -| server.service | dict | | Change the service configuration. If you change those, make sure to change the server.config and server.ports accordingly. | -| server.service.annotations | object | `{}` | Additional annotations to the resources | -| server.service.enabled | bool | `true` | Enables the creation of the service component. | -| server.service.healthz | dict | `{"enabled":false,"name":"healthz","port":80,"protocol":"TCP","targetPort":80}` | The "healthz" definition . Use if you need to create a TCP health check for load balancers on cloud services. | -| server.service.labels | object | `{}` | Additional labels to the resources | -| server.service.ports | dict | | Change the ports to be mapped to the service. If you change those, make sure to change the server.config and server.ports accordingly. | -| server.service.ports[0] | dict | `{"name":"game","port":8211,"protocol":"UDP","targetPort":8211}` | The "game" port definition. If you change this, make sure to change the server.ports.game and server.config.port accordingly. | -| server.service.ports[1] | dict | `{"name":"query","port":27015,"protocol":"UDP","targetPort":27015}` | The "query" port definition . If you change this, make sure to change the server.ports.query and server.config.query_port accordingly. | -| server.service.ports[2] | dict | `{"name":"rcon","port":25575,"protocol":"UDP","targetPort":25575}` | The "rcon" port definition . If you change this, make sure to change the server.ports.rcon and server.config.rcon.port accordingly. | -| server.service.type | string | `"LoadBalancer"` | The type of service to be created. | -| server.storage | dict | `{"external":false,"externalName":"","preventDelete":false,"size":"12Gi","storageClassName":""}` | Define some parameters for the storage volume | -| server.storage.external | bool | `false` | Define if it will use an existing PVC containing the installation data. | -| server.storage.externalName | bool | `""` | The external PVC name to use. | -| server.storage.preventDelete | bool | `false` | Keeps helm from deleting the PVC. By default, helm does not delete pvcs. | -| server.storage.size | string | `"12Gi"` | The size of the pvc storage. | -| server.storage.storageClassName | string | `""` | The storage class name. | - ----------------------------------------------- -Autogenerated from chart metadata using [helm-docs v1.12.0](https://github.com/norwoodj/helm-docs/releases/v1.12.0)