Managed Kubernetes
Latest
Frequently Asked Questions
Solutions
How Tos
Internal Only
Templates
Powered By

Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
Retrieve Node Configuration for Clusters Created Using Hostname
Copy Markdown
Open in ChatGPT
Open in Claude
Problem
Retrieve Node Configuration for Clusters Created Hostname.
Environment
- Platform9 Managed Kubernetes - v5.2 & K8s v1.20 and Higher
Answer
Single Node Cluster created with hostname:true.
xxxxxxxxxx$ kubectl get nodesNAME STATUS ROLES AGE VERSIONsanchit-mav.novalocal Ready master 5m37s v1.20.5Starting Kubectl Proxy on the node.
xxxxxxxxxx$ kubectl proxy --port=8001 &[1] 12428 $ Starting to serve on 127.0.0.1:8001With hostname of the node in curl call.
$ curl -sSL http://localhost:8001/api/v1/nodes/sanchit-mav.novalocal/proxy/configz -vvv* About to connect() to localhost port 8001 (#0)* Trying ::1...* Connection refused* Trying 127.0.0.1...* Connected to localhost (127.0.0.1) port 8001 (#0)> GET /api/v1/nodes/sanchit-mav.novalocal/proxy/configz HTTP/1.1> User-Agent: curl/7.29.0> Host: localhost:8001> Accept: */*>< HTTP/1.1 200 OK< Cache-Control: no-cache, private< Content-Length: 2431< Content-Type: application/json< Date: Wed, 22 Sep 2021 23:34:51 GMT< X-Content-Type-Options: nosniff<{"kubeletconfig":{"enableServer":true,"staticPodPath":"/etc/pf9/kube.d/master.yaml","syncFrequency":"1m0s","fileCheckFrequency":"20s","httpCheckFrequency":"20s","address":"0.0.0.0","port":10250,"tlsCertFile":"/etc/pf9/kube.d/certs/kubelet/server/request.crt","tlsPrivateKeyFile":"/etc/pf9/kube.d/certs/kubelet/server/request.key","tlsCipherSuites":["TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384","TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384","TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256"],"authentication":{"x509":{"clientCAFile":"/etc/pf9/kube.d/certs/kubelet/server/ca.crt"},"webhook":{"enabled":true,"cacheTTL":"2m0s"},"anonymous":{"enabled":false}},"authorization":{"mode":"AlwaysAllow","webhook":{"cacheAuthorizedTTL":"5m0s","cacheUnauthorizedTTL":"30s"}},"registryPullQPS":5,"registryBurst":10,"eventRecordQPS":5,"eventBurst":10,"enableDebuggingHandlers":true,"healthzPort":10248,"healthzBindAddress":"127.0.0.1","oomScoreAdj":-999,"clusterDomain":"cluster.local","clusterDNS":["10.21.0.10"],"streamingConnectionIdleTimeout":"4h0m0s","nodeStatusUpdateFrequency":"10s","nodeStatusReportFrequency":"5m0s","nodeLeaseDurationSeconds":40,"imageMinimumGCAge":"2m0s","imageGCHighThresholdPercent":85,"imageGCLowThresholdPercent":80,"volumeStatsAggPeriod":"1m0s","cgroupsPerQOS":true,"cgroupDriver":"cgroupfs","cpuManagerPolicy":"none","cpuManagerReconcilePeriod":"10s","topologyManagerPolicy":"none","topologyManagerScope":"container","runtimeRequestTimeout":"2m0s","hairpinMode":"promiscuous-bridge","maxPods":200,"podPidsLimit":-1,"resolvConf":"/etc/resolv.conf","cpuCFSQuota":true,"cpuCFSQuotaPeriod":"100ms","nodeStatusMaxImages":50,"maxOpenFiles":1000000,"contentType":"application/vnd.kubernetes.protobuf","kubeAPIQPS":5,"kubeAPIBurst":10,"serializeImagePulls":true,"evictionHard":{"imagefs.available":"15%","memory.available":"100Mi","nodefs.available":"10%","nodefs.inodesFree":"5%"},"evictionPressureTransitionPeriod":"5m0s","enableControllerAttachDetach":true,"makeIPTablesUtilChains":true,"iptablesMasqueradeBit":14,"iptablesDropBit":15,"featureGates":{"D* Connection #0 to host localhost left intactynamicKubeletConfig":true},"failSwapOn":true,"containerLogMaxSize":"10Mi","containerLogMaxFiles":5,"configMapAndSecretChangeDetectionStrategy":"Watch","enforceNodeAllocatable":["pods"],"volumePluginDir":"/usr/libexec/kubernetes/kubelet-plugins/volume/exec/","logging":{"format":"text"},"enableSystemLogHandler":true,"shutdownGracePeriod":"0s","shutdownGracePeriodCriticalPods":"0s"}}VariableType to search · ESC to discard
GlossaryType to search · ESC to discard
InsertType to search · ESC to discard
No matches
Last updated on
Was this page helpful?
Discard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message