GithubHelp home page GithubHelp logo

IPv6 Support on Kubernetes about immich HOT 5 CLOSED

RomLecat avatar RomLecat commented on June 28, 2024
IPv6 Support on Kubernetes

from immich.

Comments (5)

bo0tzz avatar bo0tzz commented on June 28, 2024

I'm not quite sure where this is going wrong, but it doesn't quite seem like an Immich issue to me. This seems like either an issue with the bitnami chart or kubernetes dns, or with how the redis library we use resolves the address.

from immich.

RomLecat avatar RomLecat commented on June 28, 2024

The Bitnami charts indeed lacks configuration by not providing ipFamily and/or ipFamilyPolicy, but an IPv6-only service should be working in the first place.

Kubernetes DNS works fine, tested by installing ping in the pod then running:

root@immich-server-954d7b649-mqgj6:/usr/src/app# ping immich-redis-master
PING immich-redis-master(immich-redis-master.immich.svc.cluster.local (<ipv6-prefix-redacted>:701::2:c924)) 56 data bytes
^C
--- immich-redis-master ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms

root@immich-server-954d7b649-mqgj6:/usr/src/app# ping immich-redis-master -4
ping: immich-redis-master: Address family for hostname not supported

This is expected because the service is IPv6-only, so AAAA records works fine but querying A returns no host.

It does looks like an error in ioredis: https://github.com/redis/ioredis/blob/main/lib/redis/RedisOptions.ts#L201
This issue: mastodon/mastodon#27043 seems to mention a workaround by setting ?family= in the URL. Is there a way to provide a full Redis URL to Immich ?

from immich.

bo0tzz avatar bo0tzz commented on June 28, 2024

You can set REDIS_URL (see https://immich.app/docs/install/environment-variables#redis), which expects base64-encoded json matching the RedisOptions type you linked.

from immich.

RomLecat avatar RomLecat commented on June 28, 2024

Thanks, that did work!
It does not seem very "standard" however, REDIS_URL usually refers to an URL like this : "redis://hostname:port/?options".

from immich.

bo0tzz avatar bo0tzz commented on June 28, 2024

It was done this way to support redis sentinel, which I believe isn't possible through that (admittedly more sensible) URL format.

from immich.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.