From f2982489f0917dbcfb0cfb10b9336a2cd38ac0bc Mon Sep 17 00:00:00 2001 From: Angel Nunez Mencias Date: Tue, 24 Aug 2021 03:16:53 +0200 Subject: [PATCH] [games-on-whales] Split service in TCP and UDP ports (#1134) * initial release * [games-on-whales] split tcp and udp services Co-authored-by: angelnu --- .gitignore | 1 + charts/stable/games-on-whales/Chart.yaml | 2 +- charts/stable/games-on-whales/README.md | 28 +++++++++++++++---- .../README_CHANGELOG.md.gotmpl | 17 +++++++++++ .../games-on-whales/templates/common.yaml | 4 +++ charts/stable/games-on-whales/values.yaml | 14 +++++++--- 6 files changed, 56 insertions(+), 10 deletions(-) diff --git a/.gitignore b/.gitignore index a4029771..246efe60 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,4 @@ charts/**/charts .env .envrc Gemfile.lock +angel.yaml diff --git a/charts/stable/games-on-whales/Chart.yaml b/charts/stable/games-on-whales/Chart.yaml index 719b6e1c..ab9376e7 100644 --- a/charts/stable/games-on-whales/Chart.yaml +++ b/charts/stable/games-on-whales/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 appVersion: 1.0.0 description: Streams graphic applications/games (retroarch, firefox, steam) runing on Kubernetes name: games-on-whales -version: 1.0.0 +version: 1.1.0 kubeVersion: ">=1.19.0-0" keywords: - games-on-whales diff --git a/charts/stable/games-on-whales/README.md b/charts/stable/games-on-whales/README.md index 3cf30cc5..46402402 100644 --- a/charts/stable/games-on-whales/README.md +++ b/charts/stable/games-on-whales/README.md @@ -1,6 +1,6 @@ # games-on-whales -![Version: 1.0.0](https://img.shields.io/badge/Version-1.0.0-informational?style=flat-square) ![AppVersion: 1.0.0](https://img.shields.io/badge/AppVersion-1.0.0-informational?style=flat-square) +![Version: 1.1.0](https://img.shields.io/badge/Version-1.1.0-informational?style=flat-square) ![AppVersion: 1.0.0](https://img.shields.io/badge/AppVersion-1.0.0-informational?style=flat-square) Streams graphic applications/games (retroarch, firefox, steam) runing on Kubernetes @@ -84,7 +84,7 @@ the host does not load any modules for the graphic card. See the | firefox.image.repository | string | `"andrewmackrodt/firefox-x11"` | image repository | | firefox.image.tag | string | `"latest"` | image tag | | firefox.logLevel | string | `"info"` | firefox log level | -| firefox.volumeMounts | object | `{}` | firefox extra volume mounts | +| firefox.volumeMounts | list | `[]` | firefox extra volume mounts | | ingress.main | object | See values.yaml | Enable and configure ingress settings for the chart under this key. | | mkhomeretrodirs.image.pullPolicy | string | `"IfNotPresent"` | image pull policy | | mkhomeretrodirs.image.repository | string | `"busybox"` | image repository | @@ -99,14 +99,15 @@ the host does not load any modules for the graphic card. See the | retroarch.image.repository | string | `"gameonwhales/retroarch"` | retroarch image repository | | retroarch.image.tag | string | `"latest"` | retroarch image tag | | retroarch.logLevel | string | `"info"` | retroarch log level | -| retroarch.volumeMounts | object | `{}` | retroarch extra volume mounts | -| service.main | object | See values.yaml | Enable and configure service settings for the chart under this key. | +| retroarch.volumeMounts | list | `[]` | retroarch extra volume mounts | +| service.main | object | See values.yaml | Enable and configure TCP service settings for the chart under this key. | +| service.udp | object | See values.yaml | Enable and configure UDP service settings for the chart under this key. | | steam.enabled | bool | `true` | enable/disable steam container | | steam.image.pullPolicy | string | `"IfNotPresent"` | steam image pull policy | | steam.image.repository | string | `"gameonwhales/steam"` | steam image repository | | steam.image.tag | string | `"latest"` | steam image tag | | steam.protonLog | int | `1` | enable proton log | -| steam.volumeMounts | object | `{}` | steam extra volume mounts | +| steam.volumeMounts | list | `[]` | steam extra volume mounts | | sunshine.env | object | `{}` | sunshine additional env settings | | sunshine.image.pullPolicy | string | `"IfNotPresent"` | sunshine image pull policy | | sunshine.image.repository | string | `"gameonwhales/sunshine"` | sunshine image repository | @@ -127,6 +128,23 @@ All notable changes to this application Helm chart will be documented in this fi The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +### [1.1.0] + +#### Added + +- N/A + +#### Changed + +- Split tcp and udp services (problems with flux/helm) +- Fix mount volumes - from map to list + +#### Removed + +- N/A + +[1.0.0]: #100 + ### [1.0.0] #### Added diff --git a/charts/stable/games-on-whales/README_CHANGELOG.md.gotmpl b/charts/stable/games-on-whales/README_CHANGELOG.md.gotmpl index 06ad5fb3..4ea89bcb 100644 --- a/charts/stable/games-on-whales/README_CHANGELOG.md.gotmpl +++ b/charts/stable/games-on-whales/README_CHANGELOG.md.gotmpl @@ -9,6 +9,23 @@ All notable changes to this application Helm chart will be documented in this fi The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +### [1.1.0] + +#### Added + +- N/A + +#### Changed + +- Split tcp and udp services (problems with flux/helm) +- Fix mount volumes - from map to list + +#### Removed + +- N/A + +[1.0.0]: #100 + ### [1.0.0] #### Added diff --git a/charts/stable/games-on-whales/templates/common.yaml b/charts/stable/games-on-whales/templates/common.yaml index 2752a02a..07d56383 100644 --- a/charts/stable/games-on-whales/templates/common.yaml +++ b/charts/stable/games-on-whales/templates/common.yaml @@ -203,6 +203,10 @@ service: primary: true port: 47990 protocol: HTTPS + externalTrafficPolicy: Local + udp: + enabled: true + ports: sunshine-udp1: enabled: true port: 47998 diff --git a/charts/stable/games-on-whales/values.yaml b/charts/stable/games-on-whales/values.yaml index 1069d387..41c6adf4 100644 --- a/charts/stable/games-on-whales/values.yaml +++ b/charts/stable/games-on-whales/values.yaml @@ -12,12 +12,18 @@ ingress: enabled: false service: - # -- Enable and configure service settings for the chart under this key. + # -- Enable and configure TCP service settings for the chart under this key. # @default -- See values.yaml main: {} # type: LoadBalancer # loadBalancerIP: 192.168.1.129 + # -- Enable and configure UDP service settings for the chart under this key. + # @default -- See values.yaml + udp: {} + # type: LoadBalancer + # loadBalancerIP: 192.168.1.129 + # -- Configure persistence settings for the chart under this key. # @default -- See values.yaml persistence: @@ -77,7 +83,7 @@ retroarch: # -- retroarch log level logLevel: info # -- retroarch extra volume mounts - volumeMounts: {} + volumeMounts: [] steam: # -- enable/disable steam container enabled: true @@ -91,7 +97,7 @@ steam: # -- enable proton log protonLog: 1 # -- steam extra volume mounts - volumeMounts: {} + volumeMounts: [] firefox: # -- enable/disable firefox container enabled: true @@ -105,7 +111,7 @@ firefox: # -- firefox log level logLevel: info # -- firefox extra volume mounts - volumeMounts: {} + volumeMounts: [] mkhomeretrodirs: image: # -- image repository