Skip to content

Kubernetes Deployment #35523

@Gladiator0619

Description

@Gladiator0619

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions