From ea6a36c324117481c5d3c57d584c58a477ecbc8f Mon Sep 17 00:00:00 2001 From: Dana Harrison Date: Sun, 19 Sep 2021 13:07:32 -0400 Subject: [PATCH] Initial commit --- .helmignore | 23 +++++++++++++++++++++ Chart.yaml | 24 ++++++++++++++++++++++ templates/jamulus.deployment.yml | 34 ++++++++++++++++++++++++++++++++ templates/jamulus.lb.yml | 13 ++++++++++++ values.yaml | 5 +++++ 5 files changed, 99 insertions(+) create mode 100644 .helmignore create mode 100644 Chart.yaml create mode 100644 templates/jamulus.deployment.yml create mode 100644 templates/jamulus.lb.yml create mode 100644 values.yaml diff --git a/.helmignore b/.helmignore new file mode 100644 index 0000000..0e8a0eb --- /dev/null +++ b/.helmignore @@ -0,0 +1,23 @@ +# Patterns to ignore when building packages. +# This supports shell glob matching, relative path matching, and +# negation (prefixed with !). Only one pattern per line. +.DS_Store +# Common VCS dirs +.git/ +.gitignore +.bzr/ +.bzrignore +.hg/ +.hgignore +.svn/ +# Common backup files +*.swp +*.bak +*.tmp +*.orig +*~ +# Various IDEs +.project +.idea/ +*.tmproj +.vscode/ diff --git a/Chart.yaml b/Chart.yaml new file mode 100644 index 0000000..22ecdd8 --- /dev/null +++ b/Chart.yaml @@ -0,0 +1,24 @@ +apiVersion: v2 +name: jamulus +description: A Helm chart for Kubernetes + +# A chart can be either an 'application' or a 'library' chart. +# +# Application charts are a collection of templates that can be packaged into versioned archives +# to be deployed. +# +# Library charts provide useful utilities or functions for the chart developer. They're included as +# a dependency of application charts to inject those utilities and functions into the rendering +# pipeline. Library charts do not define any templates and therefore cannot be deployed. +type: application + +# This is the chart version. This version number should be incremented each time you make changes +# to the chart and its templates, including the app version. +# Versions are expected to follow Semantic Versioning (https://semver.org/) +version: 0.1.0 + +# This is the version number of the application being deployed. This version number should be +# incremented each time you make changes to the application. Versions are not expected to +# follow Semantic Versioning. They should reflect the version the application is using. +# It is recommended to use it with quotes. +appVersion: "1.16.0" diff --git a/templates/jamulus.deployment.yml b/templates/jamulus.deployment.yml new file mode 100644 index 0000000..b83013b --- /dev/null +++ b/templates/jamulus.deployment.yml @@ -0,0 +1,34 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: jamulus + labels: + app: jamulus +spec: + replicas: 1 + selector: + matchLabels: + app: jamulus + template: + metadata: + labels: + app: jamulus + spec: + containers: + - name: jamulus + image: grundic/jamulus + ports: + - containerPort: {{ .Values.containerPort }} + args: + - "-s" + - "-n" + - "-p" + - "{{ .Values.containerPort }}" + - "-w" + - "{{ .Values.serverMessage }}" + - "-u" + - "{{ .Values.maxUsers }}" + - "-T" + resources: + limits: + ephemeral-storage: 4G \ No newline at end of file diff --git a/templates/jamulus.lb.yml b/templates/jamulus.lb.yml new file mode 100644 index 0000000..ce5d369 --- /dev/null +++ b/templates/jamulus.lb.yml @@ -0,0 +1,13 @@ +apiVersion: v1 +kind: Service +metadata: + name: jamulus-lb +spec: + type: LoadBalancer + selector: + app: jamulus + ports: + - name: "{{ .Values.containerPort }}" + protocol: UDP + port: {{ .Values.containerPort }} + targetPort: {{ .Values.containerPort }} \ No newline at end of file diff --git a/values.yaml b/values.yaml new file mode 100644 index 0000000..8c8bc46 --- /dev/null +++ b/values.yaml @@ -0,0 +1,5 @@ +containerPort: 22124 +#Set this to whatever you like +maxUsers: 15 +#Set this to whatever you like +serverMessage: Welcome message goes here! \ No newline at end of file