Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
H
Helm Charts for Minds Projects
Project
Project
Details
Activity
Releases
Dependency List
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Helm Charts for Minds Projects
Commits
d2a9babd
Commit
d2a9babd
authored
1 hour ago
by
Mark Harding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(feat): support socket servers
parent
49a50591
sandbox-wip
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
106 additions
and
8 deletions
+106
-8
configMap.yaml
minds/templates/configMap.yaml
+2
-2
deployment-sockets.yaml
minds/templates/deployment-sockets.yaml
+87
-0
ingress-app.yaml
minds/templates/ingress-app.yaml
+4
-0
values.yaml
minds/values.yaml
+13
-6
No files found.
minds/templates/configMap.yaml
View file @
d2a9babd
...
...
@@ -266,8 +266,8 @@ data:
// Sockets configuration
$CONFIG->set('sockets-jwt-secret', '{{ .Values.sockets.jwt.secret }}');
$CONFIG->set('sockets-jwt-domain', '{{ .Values.
sockets.jwt.
domain }}');
$CONFIG->set('sockets-server-uri', '{{ .Values.
sockets.uri
}}');
$CONFIG->set('sockets-jwt-domain', '{{ .Values.domain }}');
$CONFIG->set('sockets-server-uri', '{{ .Values.
domain
}}');
// Twillio configuration
$CONFIG->set('twilio', [
...
...
This diff is collapsed.
Click to expand it.
minds/templates/deployment-sockets.yaml
0 → 100644
View file @
d2a9babd
apiVersion
:
apps/v1
kind
:
Deployment
metadata
:
name
:
{{
include "minds.fullname" .
}}
-sockets
labels
:
app.kubernetes.io/name
:
{{
include "minds.name" .
}}
helm.sh/chart
:
{{
include "minds.chart" .
}}
app.kubernetes.io/instance
:
{{
.Release.Name
}}
app.kubernetes.io/managed-by
:
{{
.Release.Service
}}
spec
:
replicas
:
{{
.Values.sockets.replicas
}}
selector
:
matchLabels
:
app.kubernetes.io/name
:
{{
include "minds.name" .
}}
app.kubernetes.io/instance
:
{{
.Release.Name
}}
app.minds.io/name
:
{{
template "minds.fullname" .
}}
-sockets
template
:
metadata
:
labels
:
app.kubernetes.io/name
:
{{
include "minds.name" .
}}
app.kubernetes.io/instance
:
{{
.Release.Name
}}
app.minds.io/name
:
{{
template "minds.fullname" .
}}
-sockets
app.minds.io/lastChanged
:
"
1"
spec
:
containers
:
-
name
:
{{
.Chart.Name
}}
-sockets
image
:
"
{{
.Values.sockets.image.repository
}}:{{
.Values.sockets.image.tag
}}"
imagePullPolicy
:
{{
.Values.sockets.image.pullPolicy
}}
ports
:
-
name
:
sockets
containerPort
:
8010
protocol
:
TCP
readinessProbe
:
tcpSocket
:
port
:
8010
initialDelaySeconds
:
10
timeoutSeconds
:
5
env
:
-
name
:
PORT
value
:
"
8010"
-
name
:
REDIS_HOST
value
:
"
redis-master"
-
name
:
REDIS_PORT
value
:
"
6379"
-
name
:
CASSANDRA_SERVERS
value
:
"
cassandra"
-
name
:
CASSANDRA_KEYSPACE
value
:
"
minds"
-
name
:
MULTI
value
:
"
false"
-
name
:
JWT_SECRET
value
:
{{
.Values.sockets.jwt.secret
}}
resources
:
{{
- toYaml .Values.sockets.resources | nindent 12
}}
{{
- with .Values.nodeSelector
}}
nodeSelector
:
{{
- toYaml . | nindent 8
}}
{{
- end
}}
{{
- with .Values.affinity
}}
affinity
:
{{
- toYaml . | nindent 8
}}
{{
- end
}}
{{
- with .Values.tolerations
}}
tolerations
:
{{
- toYaml . | nindent 8
}}
{{
- end
}}
---
apiVersion
:
v1
kind
:
Service
metadata
:
name
:
{{
include "minds.fullname" .
}}
-sockets
labels
:
app.kubernetes.io/name
:
{{
include "minds.name" .
}}
helm.sh/chart
:
{{
include "minds.chart" .
}}
app.kubernetes.io/instance
:
{{
.Release.Name
}}
app.kubernetes.io/managed-by
:
{{
.Release.Service
}}
spec
:
type
:
{{
.Values.service.type
}}
ports
:
-
port
:
8010
targetPort
:
8010
protocol
:
TCP
name
:
ws
selector
:
app.minds.io/name
:
{{
template "minds.fullname" .
}}
-sockets
This diff is collapsed.
Click to expand it.
minds/templates/ingress-app.yaml
View file @
d2a9babd
...
...
@@ -20,4 +20,8 @@ spec:
-
backend
:
serviceName
:
{{
template "minds.fullname" .
}}
-app
servicePort
:
http
-
path
:
/socket.io
backend
:
serviceName
:
{{
template "minds.fullname" .
}}
-sockets
servicePort
:
ws
{{
- end
}}
This diff is collapsed.
Click to expand it.
minds/values.yaml
View file @
d2a9babd
...
...
@@ -31,6 +31,19 @@ nginx:
requests
:
cpu
:
200m
sockets
:
image
:
repository
:
registry.gitlab.com/minds/sockets
tag
:
v0.0.1
pullPolicy
:
IfNotPresent
ingress
:
enabled
:
false
replicas
:
1
jwt
:
secret
:
changeme
domain
:
uri
:
runners
:
image
:
repository
:
registry.gitlab.com/minds/engine/runners
...
...
@@ -169,12 +182,6 @@ rabbitmq:
cockroachdb
:
Replicas
:
1
sockets
:
jwt
:
secret
:
domain
:
uri
:
twilio
:
sid
:
secret
:
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment