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
Unable to declare custom resources for initContainers-server-config-init in k8ssandra values.yaml #1606
Labels
enhancement
New feature or request
Comments
Hi @anihe85, I was able to customize the limits, here is a full cluster definition: apiVersion: k8ssandra.io/v1alpha1
kind: K8ssandraCluster
metadata:
namespace: k8ssandra-operator
name: demo
spec:
cassandra:
serverVersion: 4.0.6
initContainers:
- name: server-config-init
resources:
limits:
cpu: 2
memory: 1024M
requests:
cpu: 2
memory: 1024M
datacenters:
- metadata:
name: dc1
size: 1
racks:
- name: rack1
nodeAffinityLabels:
"topology.kubernetes.io/zone": region1-zone1
storageConfig:
cassandraDataVolumeClaimSpec:
storageClassName: standard
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 100Mi
# (you can also have a per-DC `initContainers` at this level) Checking the values once the pod is created:
It would also be interesting to find out why the container OOM'ed in the first place, did you capture any logs? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am getting below error with initContainers-server-config-init default value
I have tried to declare like this but it seems it is not picking up
The text was updated successfully, but these errors were encountered: