-
Notifications
You must be signed in to change notification settings - Fork 420
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
[BUG] K8S env variable not loaded #1637
Comments
Hi @schmittse, did you try again with the |
Hi @TheophileDiot, I can confirm that the issue is still present in the latest version, |
Hi @schmittse and @civts. Have you tried the latest release candidate ? Remember to checkout the documentation before hand: https://docs.bunkerweb.io/1.6.0-rc2/integrations/ |
Yes, the issue is present also in version To reproduce, deploy a bunkerweb instance in an empty cluster (I used k8s version 1.31.0) -example taken from the documentation- apiVersion: apps/v1
kind: Deployment
metadata:
name: bunkerweb
spec:
selector:
matchLabels:
app: bunkerweb
template:
metadata:
labels:
app: bunkerweb
spec:
containers:
- name: bunkerweb-scheduler
image: bunkerity/bunkerweb:1.6.0-rc2
env:
- name: KUBERNETES_MODE
value: "yes"
- name: DATABASE_URI
value: "mariadb+pymysql://bunkerweb:changeme@svc-bunkerweb-db:3306/db"
- name: DNS_RESOLVERS
value: "coredns.kube-system.svc.cluster.local"
- name: API_WHITELIST_IP
value: "127.0.0.0/8 10.0.0.0/8"
- name: MULTISITE
value: "yes"
- name: USE_REDIS
value: "yes"
- name: REDIS_HOST
value: "svc-bunkerweb-redis.default.svc.cluster.local" Then, enter a shell in the pod with |
Hello @civts, Your Deployment is pretty strange : it looks like the scheduler one but you use the In 1.6.X, env variables are now defined on Don't hesitate to try again and tell us if it's fixed. |
Hi @fl0ppy-d1sk. That was it! By defining the variables on the Thank you🙏 |
Hi @civts, it is written in the documentation when upgrading from 1.5.x to 1.6.x. |
What happened?
I've deployed a bunkerweb Ingress Controller using the documentation.
It leaded to a working DeamonSet : (only usefull part of yaml copied here)
But is the outpu log, we can see those lines :
And if we log inside the pod and look at the variables file, we can see that the REDIS host is empty :
I made this bug report using REDIS_HOST as exemple but this is true for a lot of env variables.
How to reproduce?
Install a fresh bunkerweb in a Kubernetes environnement.
Configuration file(s) (yaml or .env)
Relevant log output
BunkerWeb version
1.5.10
What integration are you using?
Kubernetes
Linux distribution (if applicable)
Ubuntu Server 20.04
Removed private data
Code of Conduct
The text was updated successfully, but these errors were encountered: