question

nagasree963_193876 avatar image
nagasree963_193876 asked nagasree963_193876 commented

Why is there emptyDir when I describe pods?

I am using cass-operator 1.1.0 . I have used the following link to setup cassandra cluster

https://github.com/datastax/cass-operator/blob/master/operator/example-cassdc-yaml/cassandra-3.11.x/example-cassdc-full.yaml

here I cannot see any empDir using.. But when I describe the pod, I can see the below ones:

- emptyDir: {}

name: server-config

- emptyDir: {}

name: server-logs

Why we are using emptyDir here?

cass-operator
1 comment
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

jeremiahdjordan avatar image jeremiahdjordan commented ·

FYI version 1.5.1 of cast-operator has recently been released. I would recommend using that over 1.1.0.

1 Like 1 ·
jim.dickinson_187342 avatar image
jim.dickinson_187342 answered

These are ephemeral volumes used as a place to share information for running containers.

Share
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

bradfordcp avatar image
bradfordcp answered nagasree963_193876 commented

As @jim.dickinson_187342 mentioned this is for sharing folders between containers. Specifically, the server-config container is used to allow the cass-config-builder init container to generate configuration files for the Cassandra container. server-logs allows the logging sidecar container to read the log files generated by the Cassandra container.

1 comment Share
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

nagasree963_193876 avatar image nagasree963_193876 commented ·

so we cannot use pvc instead of empDir for those

0 Likes 0 ·