Kubernetes mount volume on existing directory with files inside the container

Unfortunately Kubernetes’ volume system differs from Docker’s, so this is not possible directly. However, in case of a single file foo.conf you can use: a mountPath ending in this file name and a subPath containing this file name, like this: volumeMounts: – name: cephfs-0 mountPath: /opt/myapplication/conf/foo.conf subPath: foo.conf Repeat that for each file. But if … Read more

what’s meaning the container_cpu_cfs_throttled_seconds_total metrics

container_cpu_cfs_throttled_seconds_total is the sum of all throttle durations, i.e. durations that the container was throttled, i.e. stopped using the uses CFS Cgroup bandwidth control. Since each stopped thread adds its throttled durations to container_cpu_cfs_throttled_seconds_total, this number can become huge and does not help you (unless you have a known, fixed number of threads). That is … Read more

Kubernetes – pod has unbound immediate PersistentVolumeClaims

PersistentVolumeClaims will remain unbound indefinitely if a matching PersistentVolume does not exist. The PersistentVolume is matched with accessModes and capacity. In this case capacity the PV is 10Gi whereas PVC has capacity of 3Gi. The capacity in the PV needs to same as in the claim i.e 3Gi to fix the unbound immediate PersistentVolumeClaims issue.

The node was low on resource: ephemeral-storage

Pods that use emptyDir volumes without storage quotas will fill up this storage, where the following error is present: eviction manager: attempting to reclaim ephemeral-storage Set a quota limits.ephemeral-storage, requests.ephemeral-storage to limit this, as otherwise any container can write any amount of storage to its node filesystem. A sample resource quota definition apiVersion: v1 kind: … Read more