-
Notifications
You must be signed in to change notification settings - Fork 7
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
Unable to persist connection data inside Kubernetes #19
Comments
I have the exact same problem. |
Found it.... this image persists into |
@djordjekrsmanovic, is your deployment working? I copied your definition, but it doesn't seem to start. I see nothing in the logs either. I want to disable SERVER_TLS, which I don't think is the problem in my case, but it's the only difference from your setup above. Can someone share their deployment/stateful set setup? |
@germanattanasio Deployment is working. I will check issue with data persistence again. |
Thanks, @djordjekrsmanovic. I ended up switching to the official Docker image from Redis. It seems like they finally got their act together. I use a StatefulSet, but I think a Deployment would work too. I took into account a ---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: d1-redis-insight
labels:
chart: moveo-1.0.0
release: d1
heritage: Helm
component: d1-redis-insight
spec:
serviceName: d1-redis-insight
replicas: 1
updateStrategy:
type: RollingUpdate
selector:
matchLabels:
component: redis-insight-v2
release: d1
template:
metadata:
labels:
component: redis-insight-v2
release: d1
spec:
hostNetwork: false
hostPID: false
hostIPC: false
securityContext:
fsGroup: 1000
containers:
- name: redis-insight-v2
image: "redis/redisinsight:2.48.0"
imagePullPolicy: IfNotPresent
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
privileged: false
readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 1000
seccompProfile:
type: RuntimeDefault
ports:
- name: http
containerPort: 5000
protocol: TCP
livenessProbe:
httpGet:
path: /
port: http
readinessProbe:
httpGet:
path: /
port: http
env:
- name: NODE_ENV
value: production
- name: RI_APP_PORT
value: "5000"
- name: RI_LOG_LEVEL
value: debug
- name: RI_FILES_LOGGER
value: 'false'
resources:
limits:
memory: 450Mi
requests:
cpu: 100m
memory: 400Mi
volumeMounts:
- name: data
mountPath: /data
- name: temp-volume
mountPath: /home/node/.redisinsight-app
volumes:
- name: temp-volume
emptyDir: {}
volumeClaimTemplates:
- metadata:
name: data
spec:
accessModes: [ "ReadWriteOnce" ]
resources:
requests:
storage: 2Gi |
Hello, I have problem to persist connection data. Looks like when pod of redisinsight restarts, it lose all connections to redis databases.
This is configuration for pod
Thank you in advance!
The text was updated successfully, but these errors were encountered: