Skip to content

Instantly share code, notes, and snippets.

@kokhang
Created August 8, 2017 17:54
Show Gist options
  • Save kokhang/a921318ba0bcd17ab3326cb2e649e779 to your computer and use it in GitHub Desktop.
Save kokhang/a921318ba0bcd17ab3326cb2e649e779 to your computer and use it in GitHub Desktop.
Querying kubelet config information from node
$ kubectl get --raw /api/v1/nodes/minikube/proxy/configz
{"componentconfig":{"Controllers":["*"],"Port":10252,"Address":"0.0.0.0","UseServiceAccountCredentials":false,"CloudProvider":"","CloudConfigFile":"","ConcurrentEndpointSyncs":5,"ConcurrentRSSyncs":5,"ConcurrentRCSyncs":5,"ConcurrentServiceSyncs":1,"ConcurrentResourceQuotaSyncs":5,"ConcurrentDeploymentSyncs":5,"ConcurrentDaemonSetSyncs":2,"ConcurrentJobSyncs":5,"ConcurrentNamespaceSyncs":10,"ConcurrentSATokenSyncs":5,"LookupCacheSizeForRC":4096,"LookupCacheSizeForRS":4096,"LookupCacheSizeForDaemonSet":1024,"ServiceSyncPeriod":"5m0s","NodeSyncPeriod":"0s","RouteReconciliationPeriod":"10s","ResourceQuotaSyncPeriod":"5m0s","NamespaceSyncPeriod":"5m0s","PVClaimBinderSyncPeriod":"15s","MinResyncPeriod":"12h0m0s","TerminatedPodGCThreshold":12500,"HorizontalPodAutoscalerSyncPeriod":"30s","HorizontalPodAutoscalerUpscaleForbiddenWindow":"3m0s","HorizontalPodAutoscalerDownscaleForbiddenWindow":"5m0s","DeploymentControllerSyncPeriod":"30s","PodEvictionTimeout":"5m0s","DeletingPodsQps":0.1,"DeletingPodsBurst":10,"NodeMonitorGracePeriod":"40s","RegisterRetryCount":10,"NodeStartupGracePeriod":"1m0s","NodeMonitorPeriod":"5s","ServiceAccountKeyFile":"/var/lib/localkube/certs/apiserver.key","ClusterSigningCertFile":"/etc/kubernetes/ca/ca.pem","ClusterSigningKeyFile":"/etc/kubernetes/ca/ca.key","ClusterSigningDuration":"8760h0m0s","EnableProfiling":true,"EnableContentionProfiling":false,"ClusterName":"kubernetes","ClusterCIDR":"","ServiceCIDR":"","NodeCIDRMaskSize":24,"AllocateNodeCIDRs":false,"CIDRAllocatorType":"","ConfigureCloudRoutes":true,"RootCAFile":"/var/lib/localkube/certs/ca.crt","ContentType":"application/vnd.kubernetes.protobuf","KubeAPIQPS":20,"KubeAPIBurst":30,"LeaderElection":{"LeaderElect":true,"LeaseDuration":"15s","RenewDeadline":"10s","RetryPeriod":"2s","ResourceLock":"endpoints"},"VolumeConfiguration":{"EnableHostPathProvisioning":true,"EnableDynamicProvisioning":true,"PersistentVolumeRecyclerConfiguration":{"MaximumRetry":3,"MinimumTimeoutNFS":300,"PodTemplateFilePathNFS":"","IncrementTimeoutNFS":30,"PodTemplateFilePathHostPath":"","MinimumTimeoutHostPath":60,"IncrementTimeoutHostPath":30},"FlexVolumePluginDir":"/usr/libexec/kubernetes/kubelet-plugins/volume/exec/"},"ControllerStartInterval":"0s","EnableGarbageCollector":true,"ConcurrentGCSyncs":20,"GCIgnoredResources":[{"Group":"authorization.k8s.io","Resource":"selfsubjectaccessreviews"},{"Group":"","Resource":"bindings"},{"Group":"","Resource":"componentstatuses"},{"Group":"","Resource":"events"},{"Group":"authentication.k8s.io","Resource":"tokenreviews"},{"Group":"authorization.k8s.io","Resource":"subjectaccessreviews"},{"Group":"authorization.k8s.io","Resource":"localsubjectaccessreviews"},{"Group":"apiregistration.k8s.io","Resource":"apiservices"},{"Group":"apiextensions.k8s.io","Resource":"customresourcedefinitions"},{"Group":"extensions","Resource":"replicationcontrollers"}],"NodeEvictionRate":0.1,"SecondaryNodeEvictionRate":0,"LargeClusterSizeThreshold":0,"UnhealthyZoneThreshold":0,"DisableAttachDetachReconcilerSync":false,"ReconcilerSyncLoopPeriod":"1m0s","EnableTaintManager":true,"HorizontalPodAutoscalerUseRESTClients":false}}Steves-MacBook-Pro:devMachine steveleon$ kubectl get --raw /api/v1/nodes/minikube/proxy/configz|jq
{
"componentconfig": {
"Controllers": [
"*"
],
"Port": 10252,
"Address": "0.0.0.0",
"UseServiceAccountCredentials": false,
"CloudProvider": "",
"CloudConfigFile": "",
"ConcurrentEndpointSyncs": 5,
"ConcurrentRSSyncs": 5,
"ConcurrentRCSyncs": 5,
"ConcurrentServiceSyncs": 1,
"ConcurrentResourceQuotaSyncs": 5,
"ConcurrentDeploymentSyncs": 5,
"ConcurrentDaemonSetSyncs": 2,
"ConcurrentJobSyncs": 5,
"ConcurrentNamespaceSyncs": 10,
"ConcurrentSATokenSyncs": 5,
"LookupCacheSizeForRC": 4096,
"LookupCacheSizeForRS": 4096,
"LookupCacheSizeForDaemonSet": 1024,
"ServiceSyncPeriod": "5m0s",
"NodeSyncPeriod": "0s",
"RouteReconciliationPeriod": "10s",
"ResourceQuotaSyncPeriod": "5m0s",
"NamespaceSyncPeriod": "5m0s",
"PVClaimBinderSyncPeriod": "15s",
"MinResyncPeriod": "12h0m0s",
"TerminatedPodGCThreshold": 12500,
"HorizontalPodAutoscalerSyncPeriod": "30s",
"HorizontalPodAutoscalerUpscaleForbiddenWindow": "3m0s",
"HorizontalPodAutoscalerDownscaleForbiddenWindow": "5m0s",
"DeploymentControllerSyncPeriod": "30s",
"PodEvictionTimeout": "5m0s",
"DeletingPodsQps": 0.1,
"DeletingPodsBurst": 10,
"NodeMonitorGracePeriod": "40s",
"RegisterRetryCount": 10,
"NodeStartupGracePeriod": "1m0s",
"NodeMonitorPeriod": "5s",
"ServiceAccountKeyFile": "/var/lib/localkube/certs/apiserver.key",
"ClusterSigningCertFile": "/etc/kubernetes/ca/ca.pem",
"ClusterSigningKeyFile": "/etc/kubernetes/ca/ca.key",
"ClusterSigningDuration": "8760h0m0s",
"EnableProfiling": true,
"EnableContentionProfiling": false,
"ClusterName": "kubernetes",
"ClusterCIDR": "",
"ServiceCIDR": "",
"NodeCIDRMaskSize": 24,
"AllocateNodeCIDRs": false,
"CIDRAllocatorType": "",
"ConfigureCloudRoutes": true,
"RootCAFile": "/var/lib/localkube/certs/ca.crt",
"ContentType": "application/vnd.kubernetes.protobuf",
"KubeAPIQPS": 20,
"KubeAPIBurst": 30,
"LeaderElection": {
"LeaderElect": true,
"LeaseDuration": "15s",
"RenewDeadline": "10s",
"RetryPeriod": "2s",
"ResourceLock": "endpoints"
},
"VolumeConfiguration": {
"EnableHostPathProvisioning": true,
"EnableDynamicProvisioning": true,
"PersistentVolumeRecyclerConfiguration": {
"MaximumRetry": 3,
"MinimumTimeoutNFS": 300,
"PodTemplateFilePathNFS": "",
"IncrementTimeoutNFS": 30,
"PodTemplateFilePathHostPath": "",
"MinimumTimeoutHostPath": 60,
"IncrementTimeoutHostPath": 30
},
"FlexVolumePluginDir": "/usr/libexec/kubernetes/kubelet-plugins/volume/exec/"
},
"ControllerStartInterval": "0s",
"EnableGarbageCollector": true,
"ConcurrentGCSyncs": 20,
"GCIgnoredResources": [
{
"Group": "authorization.k8s.io",
"Resource": "selfsubjectaccessreviews"
},
{
"Group": "",
"Resource": "bindings"
},
{
"Group": "",
"Resource": "componentstatuses"
},
{
"Group": "",
"Resource": "events"
},
{
"Group": "authentication.k8s.io",
"Resource": "tokenreviews"
},
{
"Group": "authorization.k8s.io",
"Resource": "subjectaccessreviews"
},
{
"Group": "authorization.k8s.io",
"Resource": "localsubjectaccessreviews"
},
{
"Group": "apiregistration.k8s.io",
"Resource": "apiservices"
},
{
"Group": "apiextensions.k8s.io",
"Resource": "customresourcedefinitions"
},
{
"Group": "extensions",
"Resource": "replicationcontrollers"
}
],
"NodeEvictionRate": 0.1,
"SecondaryNodeEvictionRate": 0,
"LargeClusterSizeThreshold": 0,
"UnhealthyZoneThreshold": 0,
"DisableAttachDetachReconcilerSync": false,
"ReconcilerSyncLoopPeriod": "1m0s",
"EnableTaintManager": true,
"HorizontalPodAutoscalerUseRESTClients": false
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment