Skip to content

Commit

Permalink
Update helm chart for ipv4 (#712)
Browse files Browse the repository at this point in the history
* Update helm chart for ipv4

Signed-off-by: MTRNord <[email protected]>

* Update README

Signed-off-by: MTRNord <[email protected]>

* Fix formatting

Signed-off-by: MTRNord <[email protected]>

* Fix formatting

Signed-off-by: MTRNord <[email protected]>

---------

Signed-off-by: MTRNord <[email protected]>
  • Loading branch information
MTRNord authored Dec 6, 2024
1 parent c483bf9 commit 6c77bc5
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/big-toes-hurt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@nordeck/matrix-meetings-widget': minor
---

Add Helm values for configuration of ipv4only mode
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,16 @@ You can find them at [`/docs/adrs`](./docs/adrs/).

## Deployment

Yon can run the widget using Docker:
You can run the widget using Docker:

```sh
docker run --rm -p 8080:8080 ghcr.io/nordeck/matrix-meetings-widget:latest
```

Yon can run the bot using Docker:
Our docker image supports customizing the nginx config by supplying additional config files.
For example, this allows running the image in an IPv4-only environment, as demonstrated at <https://github.com/nordeck/matrix-widget-toolkit/tree/main/containers/widget-server#custom-listen-directive>

You can run the bot using Docker:

```sh
docker run --rm -p 3000:3000 ghcr.io/nordeck/matrix-meetings-bot:latest
Expand Down
2 changes: 1 addition & 1 deletion charts/matrix-meetings-widget/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ apiVersion: v2
name: matrix-meetings-widget
description: A meetings widget for the Element messenger
type: application
version: 0.1.0
version: 0.2.0
appVersion: "0.0.0"
home: https://github.com/nordeck/matrix-meetings
13 changes: 13 additions & 0 deletions charts/matrix-meetings-widget/templates/configmap.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
apiVersion: v1
kind: ConfigMap
metadata:
Expand All @@ -7,3 +8,15 @@ metadata:
data:
REACT_APP_API_BASE_URL: "https://matrix-meetings-bot.{{- .Values.settings.hostname -}}"
REACT_APP_HOME_SERVER_URL: "https://synapse.{{- .Values.settings.hostname -}}"
{{- if .Values.nginx.ipv4Only }}
---
kind: "ConfigMap"
apiVersion: "v1"
metadata:
name: "{{ include "app.fullname" . }}-nginx-configs"
labels:
{{ include "app.labels" . | indent 4 }}
data:
listen.conf: |
listen 8080;
{{- end }}
11 changes: 11 additions & 0 deletions charts/matrix-meetings-widget/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,22 @@ spec:
mountPath: /var/cache/nginx
- name: tmp-volume
mountPath: /tmp
{{- if .Values.nginx.ipv4Only }}
- name: "nginx-configs"
mountPath: "/etc/nginx/conf.d/custom"
subpath: "listen.conf"
readOnly: true
{{- end }}
volumes:
- name: cache-volume
emptyDir: {}
- name: tmp-volume
emptyDir: {}
{{- if .Values.nginx.ipv4Only }}
- name: "nginx-configs"
configMap:
name: "{{ include "app.fullname" . }}-nginx-configs"
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
6 changes: 5 additions & 1 deletion charts/matrix-meetings-widget/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ resources: {}
# cpu: 250m
# memory: 250Mi


autoscaling:
enabled: false
minReplicas: 1
Expand All @@ -79,3 +78,8 @@ settings:

# Extra env variables to pass to the container
env: []

# Configuration related to the nginx within the container which serves the widget.
nginx:
# Only listen on ipv4
ipv4Only: false
2 changes: 1 addition & 1 deletion charts/matrix-meetings/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: matrix-meetings
description: A helper chart to deploy both the widget and the bot
type: application
version: 0.1.0
version: 0.2.0
appVersion: "0.0.0"
home: https://github.com/nordeck/matrix-meetings
dependencies:
Expand Down

0 comments on commit 6c77bc5

Please sign in to comment.