Comments (7)
This is probably due to #3360
from kind.
Thanks for the updates, can you please detail how?
from kind.
A featuregate is enabled currently to disable local storage isolation, because enabling it broke kind on some hosts.
There's more discussion in the linked PR and transitively linked issues.
You can try this config to see if that PR would solve it:
#3360 (comment)
from kind.
Thank you again for the updates.
I see localStorageCapacityIsolation
option graduated to GA in k8s v1.25 so it's enabled by default.
As far as I understand that option was disabled in kind because it broke kubernetes in some scenarios, but I still don't understand the connection with the missing metric because as far as I can see the option is about limiting the ephemeral storage in LimitRange and Pod specs.
Am I missing anything?
from kind.
I've just tried with this config
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
kubeadmConfigPatches:
- |
kind: KubeletConfiguration
localStorageCapacityIsolation: true
- |
kind: InitConfiguration
nodeRegistration:
kubeletExtraArgs:
node-labels: "ingress-ready=true"
- |
kind: ClusterConfiguration
controllerManager:
extraArgs:
bind-address: 0.0.0.0
etcd:
local:
extraArgs:
listen-metrics-urls: http://0.0.0.0:2381
scheduler:
extraArgs:
bind-address: 0.0.0.0
- |
kind: KubeProxyConfiguration
metricsBindAddress: 0.0.0.0
extraMounts:
- containerPath: /var/lib/kubelet/config.json
hostPath: "$HOME/.docker/config.json"
extraPortMappings:
- containerPort: 443
hostPort: 443
- containerPort: 80
hostPort: 80
- role: worker
- role: worker
- role: worker
still no metric available!
from kind.
kind is shipping kubelet from upstream sources, I was guessing that this metric is gated behind the same code in kubelet because it's related to tracking filesystem stats. We're not modifying kubelet.
That config should be equivilant enough because kubeadm currently cluster-scopes kubelet config, but preferably it should be explicitly cluster scoped in case kind fixes this in the future (so kubeadmConfigPatches at the top level not under one of the nodes)
It would also be helpful to test this with a minimal configuration for reproducing purposes.
Note: I just looked up this metric and it's considered alpha, and related to PVs.
https://kubernetes.io/docs/reference/instrumentation/metrics/
The other thought is this may not work with PVs from https://github.com/rancher/local-path-provisioner
What's your use case?
from kind.
Here you have the reproducer, just run the script and port-forward Grafana in monitoring namespace to be able to see that the metric is missing.
reproducer.zip
Using this reproducer I launched a kube-proxy and then issued this curl on a worker node:
curl -X GET http://127.0.0.1:8001/api/v1/nodes/<node-name>/proxy/configz | jq .
to verify that the localStorageCapacityIsolation: true
was there and the metric still missing
from kind.
Related Issues (20)
- clarify or remove third party package installs from docs HOT 1
- Makefile does not support released archive without dotgit directory HOT 8
- multi-node vs single-node cluster HOT 3
- kind create cluster failed HOT 4
- Inhibitor support for graceful node shutdown HOT 12
- The ssh service is deployed in the kind cluster HOT 3
- Problem creating cluser using Kind with Podman on Rocky Linux 8 HOT 5
- trying to accelerate Kind cluster creation by using a commited image HOT 9
- Failed to pull an image HOT 2
- Cluster creation hangs or fails on "joining worker nodes" if custom node role is set HOT 6
- Please add the name flag to the help menu HOT 1
- Build ppc64le image HOT 1
- Allow setting the node image url in config file HOT 2
- Kind cluster not able to pull public images from ghcr.io HOT 8
- KIND kubelet fails to start HOT 12
- Adding kind exec feature to execute into cluster control plane shell HOT 5
- [rootless podman] Local registry script with podman complains about pasta HOT 2
- I created kind cluster with extramappings for 3080 and I want to change it to 30080, without deleting and recreating cluster. How to do that? HOT 7
- PodSecurityPolicies in kind clusters, how to enable them? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kind.