fluent / fluent/fluent-operator
bug: Deployment.apps "fluent-operator" is invalid: spec.template.spec.containers[0].volumeMounts[0].name: Not found: "env"
- Dominant language
- Go
- Stars
- 682
- Forks
- 328
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 13
Description
### Describe the issue
Wanted to install fluent-operator and although the installation succeeded (to unknown consequence), the following error occurred:
...
[root@master-1 ~]# export FLUENT_OPERATOR_CONTAINER_RUNTIME="cri-o"
[root@master-1 ~]# helm upgrade --install fluent-operator fluent/fluent-operator --create-namespace --set containerRuntime=${FLUENT_OPERATOR_CONTAINER_RUNTIME}
Release "fluent-operator" does not exist. Installing it now.
Error: 1 error occurred:
* Deployment.apps "fluent-operator" is invalid: spec.template.spec.containers[0].volumeMounts[0].name: Not found: "env"
### To Reproduce
Performed the following leading up to the error on a fresh install of Kubernetes
1) helm repo add fluent https://fluent.github.io/helm-charts
2) helm repo update
3) helm install fluent-bit fluent/fluent-bit --namespace logging
All above successful
...
then
...
[root@master-1 ~]# export FLUENT_OPERATOR_CONTAINER_RUNTIME="cri-o"
[root@master-1 ~]# helm upgrade --install fluent-operator fluent/fluent-operator --create-namespace --set containerRuntime=${FLUENT_OPERATOR_CONTAINER_RUNTIME}
Release "fluent-operator" does not exist. Installing it now.
Error: 1 error occurred:
* Deployment.apps "fluent-operator" is invalid: spec.template.spec.containers[0].volumeMounts[0].name: Not found: "env"
...
### Expected behavior
Installation without error
### Your Environment
```markdown
3 node K8 cluster on top of KVM
...
[root@master-1 ~]# uname -a
Linux master-1 5.15.0-302.167.6.el9uek.x86_64 #2 SMP Mon Nov 4 23:41:59 PST 2024 x86_64 x86_64 x86_64 GNU/Linux
...
[root@master-1 ~]# kubectl get nodes -o wide
NAME STATUS ROLES AGE VERSION INTERNAL-IP EXTERNAL-IP OS-IMAGE KERNEL-VERSION CONTAINER-RUNTIME
master-1 Ready control-plane 42m v1.28.15 192.168.1.210 Oracle Linux Server 9.5 5.15.0-302.167.6.el9uek.x86_64 cri-o://1.33.0
worker-1 Ready 39m v1.28.15 192.168.1.211 Oracle Linux Server 9.5 5.15.0-302.167.6.el9uek.x86_64 cri-o://1.33.0
worker-2 Ready 39m v1.28.15 192.168.1.212 Oracle Linux Server 9.5 5.15.0-302.167.6.el9uek.x86_64 cri-o://1.33.0
...
[root@master-1 ~]# helm version
version.BuildInfo{Version:"v3.17.3", GitCommit:"e4da49785aa6e6ee2b86efd5dd9e43400318262b", GitTreeState:"clean", GoVersion:"go1.23.7"}
```
### How did you install fluent operator?
via helm
...
[root@master-1 ~]# export FLUENT_OPERATOR_CONTAINER_RUNTIME="cri-o"
[root@master-1 ~]# helm upgrade --install fluent-operator fluent/fluent-operator --create-namespace --set containerRuntime=${FLUENT_OPERATOR_CONTAINER_RUNTIME}
### Additional context
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.