Open sruckh opened 1 month ago
after getting the database pod working (by changing tag to latest), the following error is from init-chmod-data container:
Updating database Traceback (most recent call last): File "/opt/recipes/venv/lib/python3.12/site-packages/django/db/backends/base/base.py", line 289, in ensure_connection self.connect() File "/opt/recipes/venv/lib/python3.12/site-packages/django/utils/asyncio.py", line 26, in inner return func(*args, *kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/opt/recipes/venv/lib/python3.12/site-packages/django/db/backends/base/base.py", line 270, in connect self.connection = self.get_new_connection(conn_params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/recipes/venv/lib/python3.12/site-packages/django/utils/asyncio.py", line 26, in inner return func(args, kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/opt/recipes/venv/lib/python3.12/site-packages/django/db/backends/postgresql/base.py", line 275, in get_new_connection connection = self.Database.connect(conn_params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/recipes/venv/lib/python3.12/site-packages/psycopg2/init.py", line 122, in connect conn = _connect(dsn, connection_factory=connection_factory, **kwasync) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ psycopg2.OperationalError: could not translate host name "recipes-postgresql" to address: Name does not resolve
Issue
I am trying to install Tandoor Recipes on K3s cluster running DietPi on Raspberry Pi 4. I am trying to follow the k8s instructions which seemed fairly straightforward. Create my secrets, change my ingress, and apply the .yaml files. I don't think the nginx container ever comes up. The is in the logs for the recipes pod:
Error from server (BadRequest): container "recipes-nginx" in pod "recipes-86df8b96cd-sgfsj" is waiting to start: PodInitializing
Neither pod is coming up:
recipes-postgresql-0 0/1 CrashLoopBackOff 54 (4m14s ago) 4h16m recipes-86df8b96cd-sgfsj 0/2 Init:CrashLoopBackOff 18 (119s ago) 114m
The two PVCs were created, the secrets were created. the services were created, and the ingress controller was created.
It looked like other people in the "Discussions" were running k3s. I know k8s is not officially supported, but is anyone else running a similar configuration on k3s with Raspberry Pi? The docs seemed fairly straightforward, and not too many things to tinker with that would be problematic. Anyone have suggestions, or things that I should look at?
Thank you.
Tandoor Version
vabene1111/recipes pulled 09/23/2024
OS Version
DietPi 9.7.1
Setup
Kubernetes
Reverse Proxy
Others (please state below)
Other
Lighttpd
Environment file
Docker-Compose file
Relevant logs