I am trying to monitor filesystem usage for pods in k8s. I am using Kubernetes (microk8s) and hostpath persistent volumes. I am running Kafka along with a number of producers to see what happens when I go past the PVC size limit among other things. I have tried getting information from the API server but it is not reported there. Since it is only using hostpath, that kind of makes sense. It is not a dynamic volume system. Doing df on the host just shows all of the volumes with the same utilization as the root filesystem. This is the same result using exec -- df within the container. There are no pvcRefs on the containers using api server, which kind of explains why the dashboard doesn't have this information. Is this a dead end or does someone have a way around this limitation? I am now wondering if the PVC limits will be enforced.
Microk8s Hostpath FS Usage of PVC
965 Views Asked by user2065750 At
1
There are 1 best solutions below
Related Questions in KUBERNETES
- How to know a Pod's own IP address from inside a container in the Pod?
- Who will decide the "specified number of pods" for replication controller in kubernetes?
- Access other containers of a pod in Kubernetes
- Kubernetes cluster using Vagrant not working after restart
- kubectl not installed with gcloud SDK
- How do I access the Kubernetes api from within a pod container?
- Exposing several services with Vagrant and Kubernetes on my own server
- Does Kubernetes provision new VMs for pods on my cloud platform?
- Any suggestion for running Aerospike on Kubernetes on CoreOS on GCE?
- Kubernetes - kubectl exec bash - session drop and line width
- Google Container Engine (GKE): "Hello Wordpress" tutorial not working (ERR_CONNECTION_REFUSED)
- Kubernetes Pod Creation Speed
- How can i set max count of pods for replication-controller per node?
- Is there a way to tell kubernetes to update your containers?
- Postgres with Kubernetes and persistentDisk
Related Questions in KUBERNETES-PVC
- `mkdir` returns successfully but doesn't work in kubernetes (minikube) shared volume
- Understand PV in Kubernetes - How PV store data?
- Kops - unable to bound to storage class using pvc
- AWS EKS 1.17. PVC - "waiting for first consumer to be created before binding"
- Permission denied writing artifacts to an NFS-mounted PVC
- kubernetes storage class node selector
- NFS Persistant Volume monitoring in prometheus
- Absent AWS volume but "bound" PVC in kubernetes
- Why do PVCs persist when using 'kubectl delete ns' while Pods are deleted, and the entire namespace is removed?
- Allow scheduling multiple pod when we have anti affinity enabled
- Kubernetes - Jupyter PySpark notebook - OSError: [Errno 30] Read-only file system: '/home/jovyan/.jupyter/migrated'
- Unable to move data of 10 GB into pod with storage capacity of 20Gi
- Kubernetes run mariadb pod use pv hostpath. Occur File system loop detected in '/var/lib/mysql'
- EFS EKS pv provisioning issue
- Is there a way to create a PV & PVC per pod created by a job in Kubernetes?
Related Questions in MICROK8S
- Using Microk8s and OpenEBS cStor leads to an error when creating pool claims. Anybody know why this is occurring, and how to fix it?
- microk8s Connection to port 16443 was refused
- [microk8s][gitlab-runner][helm] slow connection / connection failed on apt-get update in docker build
- How to configure Spring Cloud Data Flow to execute tasks in a separate namespace per task?
- Kubernetes ingress controller
- How can I get the kubectl proxy to the kubernetes dashboard working?
- microk8s containerd - failed to reserve sandbox name
- Cluster service unable to redirect traffic to pods running on different nodes
- Microk8s ingress does not redirect to pod
- NGINX controller : disabling slash merging
- Microk8s can't run sample Ingress configuration
- Nodes with different capacity GPU in microk8s kubernets, custom resource
- Jenkins - Couldn't find a valid ICU package installed on the system
- kubernetes nginx-ingress IP adress issue
- Portainer CE to BE upgrade failed, it's now in a CrashLoopBackOff state
Related Questions in KUBERNETES-METRICS
- Accessing kubernetes dashboard gives Error trying to reach service: 'dial tcp 10.44.0.2:8443: connect: connection refused'
- How to get network information from metrics server
- Access Kubernetes Api from a Pod with Java-Client Library
- Kubernetes: kubectl top nodes/pods not working
- Kubernetes - Horizontal Pod Scaler error, target "unknown". Message "no recommendation"
- Difference between kubernetes metrics "/metrics/resource/v1alpha1" and "/metrics/cadvisor" endpoints
- Is it possible to use an autoscaling/v2beta2 HPA with apiregistration.k8s.io/v1 APIService?
- 'remote write receiver' HTTP API request in Prometheus
- Dask Kubernetes Operator can't reach apis/external.metrics.k8s.io/v1beta1
- what is the meaning of 'window' in results from k8s metric server api
- relationship between container_memory_working_set_bytes and process_resident_memory_bytes and total_rss
- Is there any way to represent POD CPU usage in terms of CPU cores using prometheus metrics
- Kubelet Rootfs.UsedBytes missing in /stats/summary in Minikube
- Microk8s Hostpath FS Usage of PVC
- Metric server not working : unable to handle the request (get nodes.metrics.k8s.io)
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Since with
hostPathyour data is stored directly on the worker you won't be able to monitor the usage. UsinghostPathhas many drawbacks and while its good for testing it should not be used for some prod system. Keeping the data directly on the node is dangerous and in the case of node failure/replacement you will loose it. Other disadvantages are:Pods created from the same pod template may behave differently on different nodes because of different hostPath file/dir contents on those nodes
Files or directories created with HostPath on the host are only writable by root. Which means, you either need to run your container process as root or modify the file permissions on the host to be writable by non-root user, which may lead to security issues
hostPathvolumes should not be used with Statefulsets.As you already found out it would be good idea to move on from
hostPathtowards something else.