I’m using bitnami helm chart in K8S, but am having hard time connecting through VPN using Studio 3T. The VPN allows me to telnet to private IP:port, but when I try connecting through Studio 3T i get:
Connection failed.
SERVER [x.x.x.x:xxxx] (Type: UNKNOWN) CONNECTING
SERVER [y.y.y.y:yyyy] (Type: UNKNOWN) CONNECTING
Details:
Timed out while waiting for a server that matches ReadPreferenceServerSelector{readPreference=primary}. Client view of cluster state is {type=REPLICA_SET, servers=[{address=x.x.x.x:xxxx, type=UNKNOWN, state=CONNECTING}, {address=y.y.y.y:yyyy, type=UNKNOWN, state=CONNECTING}]
This is my values.yml file, I should also mention that locally the mongo replica set is working properly, tested from a web API inside the cluster:
architecture: replicaset
replicaCount: 2
externalAccess:
enabled: true
service:
type: NodePort
nodePorts:
- 30011
- 30012
autoDiscovery:
enabled: false
persistence:
enabled: true
storageClass: local-path # Use the local-path provisioner
accessModes:
- ReadWriteOnce
size: 5Gi # Adjust the size as needed
arbiter:
enabled: false
podLabels:
role: arbiter
podLabels:
role: replicaset
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: role
operator: In
values:
- replicaset
topologyKey: "kubernetes.io/hostname"
nodeSelector: {} # Optionally specify node labels for MongoDB scheduling.
tolerations: [] # Add tolerations if required for specific node taints.
auth:
enabled: true # Enable authentication for MongoDB
rootPassword:
tls:
enabled: false # Enable TLS/SSL
autoGenerated: true # Automatically generate self-signed certificates (for testing)
extraEnvVars:
- name: OTEL_EXPORTER_OTLP_ENDPOINT
value: "http://otelcollector.myns.svc.cluster.local:4317" # Replace with your endpoint
- name: OTEL_SERVICE_NAME
value: mongo
- name: OTEL_LOG_LEVEL
value: "debug"
rbac:
create: true
serviceAccount:
create: true
automountServiceAccountToken: true
1 post - 1 participant