Skip to content

Commit 2f1858d

Browse files
oleg-fikselOleg Fiksel
andauthored
Update Rasa deployment to the latest Rasa version (#29)
* Adjust Rasa deployment to the new version of Kubernetes * Update Rasa to the latest working version * Readme: adjust the helm run command to helm3 syntax * Default config: add websocket connector to avoid Opsdroid to fail on start with default config * Add changelog and bump the Helm chart version * Opsdroid: Make config mount in Opsdroid container read only --------- Co-authored-by: Oleg Fiksel <oleg@fiksel.info>
1 parent 88e359d commit 2f1858d

6 files changed

Lines changed: 23 additions & 12 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# 0.1.8
2+
3+
* Update Rasa container image to [the latest supported ver](https://github.com/opsdroid/opsdroid/pull/1963)
4+
* Update Rasa deployment to the latest K8s version (tested on v1.26.3+k3s1)
5+
* Add websocket connection to the default (example) config to avoid Opsdroid to fail on the start with the default configuration
6+
* Make config mount in Opsdroid container read only

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ $ helm repo update
2525
To install the chart with the release name `my-bot`:
2626

2727
```bash
28-
$ helm install --name my-bot opsdroid/opsdroid
28+
$ helm install my-bot opsdroid/opsdroid
2929
```
3030

3131
## Configuration

charts/opsdroid/Chart.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v1
22
name: opsdroid
3-
version: 0.1.7
3+
version: 0.1.8
44
appVersion: 0.28.0
55
description: Opsdroid is a ChatOps bot framework written in Python
66
keywords:
@@ -16,3 +16,5 @@ sources:
1616
maintainers:
1717
- name: jacobtomlinson
1818
email: jacob@tomlinson.email
19+
- name: oleg-fiksel
20+
email: oleg@fiksel.info

charts/opsdroid/templates/opsdroid-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ spec:
2525
- name: config
2626
mountPath: "/home/opsdroid/.config/opsdroid/configuration.yaml"
2727
subPath: configuration.yaml
28-
readOnly: false
28+
readOnly: true
2929
{{- end }}
3030
{{- if .Values.opsdroid.pvc.enabled }}
3131
- mountPath: /data

charts/opsdroid/templates/rasanlu-deployment.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
{{- if .Values.rasanlu.enabled -}}
2-
apiVersion: extensions/v1beta1
2+
apiVersion: apps/v1
33
kind: Deployment
44
metadata:
55
name: rasanlu-{{ .Release.Name }}
66
spec:
77
replicas: 1
8+
selector:
9+
matchLabels:
10+
app: rasanlu-{{ .Release.Name }}
811
template:
912
metadata:
1013
labels:
@@ -18,15 +21,11 @@ spec:
1821
{{- end }}
1922
containers:
2023
- image: {{ .Values.rasanlu.image.repository }}:{{ .Values.rasanlu.image.tag }}
24+
args: ["run", "--enable-api"{{- if .Values.rasanlu.token }}, "--auth-token", "{{ .Values.rasanlu.token }}"{{- end }}{{- if .Values.rasanlu.debug_log }}, "-vv"{{- end }}]
2125
imagePullPolicy: {{ .Values.rasanlu.image.imagePullPolicy }}
2226
name: rasanlu
2327
ports:
2428
- containerPort: {{ .Values.rasanlu.service.port }}
25-
env:
26-
{{- if .Values.rasanlu.token }}
27-
- name: RASA_TOKEN
28-
value: {{ .Values.rasanlu.token }}
29-
{{- end }}
3029
{{- if $.Values.resources }}
3130
resources:
3231
{{ toYaml $.Values.rasanlu.resources | indent 12 }}

charts/opsdroid/values.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ opsdroid:
4949

5050
configuration: |
5151
welcome-message: true
52+
connectors:
53+
websocket:
5254
skills:
5355
## Dance (https://github.com/opsdroid/skill-dance)
5456
dance: {}
@@ -69,13 +71,15 @@ rasanlu:
6971

7072
token: abc123
7173

74+
debug_log: false
75+
7276
image:
73-
repository: rasa/rasa_nlu
74-
tag: 0.11.3-full
77+
repository: rasa/rasa
78+
tag: 3.3.3-full
7579
imagePullPolicy: IfNotPresent
7680

7781
service:
78-
port: 5000
82+
port: 5005
7983

8084
resources:
8185
# limits:

0 commit comments

Comments
 (0)