Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v12 of chart with centrifugo v6 #104

Merged
merged 6 commits into from
Jan 16, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2020 Centrifugal
Copyright (c) Centrifugal Labs

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 2 additions & 2 deletions charts/centrifugo/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v1
name: centrifugo
description: Centrifugo is a scalable real-time messaging server in language-agnostic way
version: 11.8.10
appVersion: 5.4.9
version: 12.0.0
appVersion: 6.0.0
home: https://centrifugal.dev
icon: https://centrifugal.dev/img/favicon.png
maintainers:
Expand Down
124 changes: 70 additions & 54 deletions charts/centrifugo/README.md

Large diffs are not rendered by default.

30 changes: 16 additions & 14 deletions charts/centrifugo/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,35 +71,37 @@ spec:
command:
- centrifugo
args:
- --health
- --prometheus
- --port
- --health.enabled
- --prometheus.enabled
- --http_server.port
- "{{ .Values.service.port }}"
- --internal_port
- --http_server.internal_port
- "{{ .Values.internalService.port }}"
- --grpc_api
- --grpc_api_port
- --grpc_api.enabled
- --grpc_api.port
- "{{ .Values.grpcService.port }}"
- --uni_grpc_port
- --uni_grpc.port
- "{{ .Values.uniGrpcService.port }}"
env:
- name: CENTRIFUGO_ADMIN_PASSWORD
valueFrom:
secretKeyRef:
name: {{ include "centrifugo.secretName" . }}
key: adminPassword
optional: true
- name: CENTRIFUGO_ADMIN_SECRET
valueFrom:
secretKeyRef:
name: {{ include "centrifugo.secretName" . }}
key: adminSecret
- name: CENTRIFUGO_TOKEN_HMAC_SECRET_KEY
optional: true
- name: CENTRIFUGO_CLIENT_TOKEN_HMAC_SECRET_KEY
valueFrom:
secretKeyRef:
name: {{ include "centrifugo.secretName" . }}
key: tokenHmacSecretKey
optional: true
- name: CENTRIFUGO_API_KEY
- name: CENTRIFUGO_HTTP_API_KEY
valueFrom:
secretKeyRef:
name: {{ include "centrifugo.secretName" . }}
Expand All @@ -111,31 +113,31 @@ spec:
name: {{ include "centrifugo.secretName" . }}
key: grpcApiKey
optional: true
- name: CENTRIFUGO_REDIS_ADDRESS
- name: CENTRIFUGO_ENGINE_REDIS_ADDRESS
valueFrom:
secretKeyRef:
name: {{ include "centrifugo.secretName" . }}
key: redisAddress
optional: true
- name: CENTRIFUGO_REDIS_USER
- name: CENTRIFUGO_ENGINE_REDIS_USER
valueFrom:
secretKeyRef:
name: {{ include "centrifugo.secretName" . }}
key: redisUser
optional: true
- name: CENTRIFUGO_REDIS_PASSWORD
- name: CENTRIFUGO_ENGINE_REDIS_PASSWORD
valueFrom:
secretKeyRef:
name: {{ include "centrifugo.secretName" . }}
key: redisPassword
optional: true
- name: CENTRIFUGO_REDIS_SENTINEL_PASSWORD
- name: CENTRIFUGO_ENGINE_REDIS_SENTINEL_PASSWORD
valueFrom:
secretKeyRef:
name: {{ include "centrifugo.secretName" . }}
key: redisSentinelPassword
optional: true
- name: CENTRIFUGO_NATS_URL
- name: CENTRIFUGO_BROKER_NATS_URL
valueFrom:
secretKeyRef:
name: {{ include "centrifugo.secretName" . }}
Expand Down
4 changes: 0 additions & 4 deletions charts/centrifugo/templates/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,9 @@ data:
{{- end }}
{{- if .Values.secrets.adminPassword }}
adminPassword: {{ .Values.secrets.adminPassword | b64enc | quote }}
{{- else }}
adminPassword: {{ randAlphaNum 12 | b64enc | quote }}
{{- end }}
{{- if .Values.secrets.adminSecret }}
adminSecret: {{ .Values.secrets.adminSecret | b64enc | quote }}
{{- else }}
adminSecret: {{ randAlphaNum 24 | b64enc | quote }}
{{- end }}
{{- if .Values.secrets.redisAddress }}
redisAddress: {{ .Values.secrets.redisAddress | b64enc | quote }}
Expand Down
9 changes: 6 additions & 3 deletions charts/centrifugo/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -270,13 +270,16 @@ config:
# Engine to use. Default memory engine allows running only one Centrifugo pod.
# Scale to many pods with Redis engine or Nats broker. Refer to Centrifugo
# documentation: https://centrifugal.github.io/centrifugo/server/engines/
engine: "memory"
engine:
type: "memory"

# Enable admin web interface by default.
admin: true
admin:
enabled: true

# Array of namespaces.
namespaces: []
channel:
namespaces: []

# Additional volumes for Centrifugo deployment.
volumes: []
Expand Down
Loading