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

Kubernetes Deployment #35523

Open
Gladiator0619 opened this issue Mar 16, 2025 · 0 comments
Open

Kubernetes Deployment #35523

Gladiator0619 opened this issue Mar 16, 2025 · 0 comments

Comments

@Gladiator0619
Copy link

Gladiator0619 commented Mar 16, 2025

Hello guys,
I am trying to deploy RocketChat on kubernetes using Helm and pointing values.yaml file but its throwing error.

helm install rocketchat rocketchat/rocketchat -f values-microservices.yaml -n rocketchattest
Error: INSTALLATION FAILED: template: rocketchat/templates/secret.yaml:25:16: executing "rocketchat/templates/secret.yaml" at <include "rocketchat.mongodb.url" .>: error calling include: template: rocketchat/templates/_helpers.tpl:77:82: executing "rocketchat.mongodb.url" at <first .Values.mongodb.auth.passwords>: error calling first: runtime error: invalid memory address or nil pointer dereference

I have 3 replicas of mongodb working properly. My values file is mentioned below

image:
pullPolicy: IfNotPresent
repository: rocketchat/rocket.chat
tag: 7.4.1 # Set the Rocket.Chat release
architecture: amd64 # Specify the architecture
replicaCount: 1 #Number of replicas/pods for Rocket.Chat

microservices:
enabled: true
ddpStreamer:
replicas: 1 #Number of replicas/pods for the ddpStreamer microservice
nats:
replicas: 1 #Number of replicas/pods for the nats microservice
presence:
replicas: 1 #Number of replicas/pods for the presence microservice
account:
replicas: 1 #Number of replicas/pods for the account microservice
authorization:
replicas: 1 #Number of replicas/pods for the authorization microservice
streamHub:
replicas: 1 #Limited to 1 pod per workspace. It can't be scaled.

host: myapp.example.com # Replace with your Rocket.Chat domain

ingress:
enabled: true
ingressClassName: azure-application-gateway
tls:
- secretName: myapp-tls-secret # This is the name of the secret that you already created fo: myapp.example.com
hosts:
: myapp.example.com

mongodb:
enabled: false # Disable embedded MongoDB since you're using an external MongoDB replica set
extraEnv:

  • name: MONGO_URL
    value: "mongodb://mongo-0.mongo.mongo.svc.cluster.local:27017,mongo-1.mongo.mongo.svc.cluster.local:27017,mongo-2.mongo.mongo.svc.cluster.local:27017/rocketchat?replicaSet=rs0"
  • name: MONGO_OPLOG_URL
    value: "mongodb://mongo-0.mongo.mongo.svc.cluster.local:27017,mongo-1.mongo.mongo.svc.cluster.local:27017,mongo-2.mongo.mongo.svc.cluster.local:27017/local?replicaSet=rs0"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant