-
Notifications
You must be signed in to change notification settings - Fork 80
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
Kubernetes native sidecar not supported #1271
Comments
The Kubernetes dependencies in cass-operator are updated as part of 1.20 (k8ssandra/cass-operator#619), 1.19.x branch remains at 1.26. However, since this project does not ship with mutating webhook, the issues in related tickets does not seem to apply here. I don't know how Istio works with native sidecars, but I'm assuming it has a mutating webhook targeting Pods when they're deployed. The incompatibility could be part of k8ssandra-operator's mutating webhook. That is, the order in which k8ssandra-operator and Istio modify the Pods is incorrect. I'll transfer this ticket to k8ssandra-operator where the Kubernetes dependency update should happen at some point. |
Hi, @burmanm
So the solution will be, as you suggested to update the k8s version in k8ssandra-operator. |
Hi again,
cassandra STS:
|
Oh I see, the k8ssandra-operator was not updated to a new k8s version yet, so it cannot work, I guess:
|
I tested the version v1.17.0 successfully. |
What happened?
Since K8S 1.28 the native sidecars feature (https://kubernetes.io/blog/2023/08/25/native-sidecar-containers/) and in Istio this feature can be enabled to start the istio-proxy as init container with the option
restartPolicy: Always
When I enable this feature and try to create a cassandra cluster using the k8ssandra-operator, the Statefulset is failing with the failure:
The same problem is reported in other cases, e.g.:
istio/istio#49221
Azure/azure-workload-identity#1312
istio/istio#49054
The might be related to the fact, that the cass-operator (until version 1.19.0) uses an old k8s.io version.
Maybe it will be resolved in the version 1.19.1 which will be included in the next k8ssandra-operator version.
What did you expect to happen?
init-container sidecars are added by istio
How can we reproduce it (as minimally and precisely as possible)?
cass-operator version
v1.19.0
Kubernetes version
v1.28.6
Method of installation
Helm
Anything else we need to know?
Using K8ssandra-Operator v1.14.0
The text was updated successfully, but these errors were encountered: