FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
How-ToDevOps

Uniform API server access using clientcmd

via Kubernetes Blog2mo ago

If you've ever wanted to develop a command line client for a Kubernetes API, especially if you've considered making your client usable as a kubectl plugin, you might have wondered how to make your client feel familiar to users of kubectl . A quick glance at the output of kubectl options might put a damper on that: "Am I really supposed to implement all those options?" Fear not, others have done a lot of the work involved for you. In fact, the Kubernetes project provides two libraries to help you handle kubectl -style command line arguments in Go programs: clientcmd and cli-runtime (which uses clientcmd ). This article will show how to use the former. General philosophy As might be expected since it's part of client-go , clientcmd 's ultimate purpose is to provide an instance of restclient.Config that can issue requests to an API server. It follows kubectl semantics: defaults are taken from ~/.kube or equivalent; files can be specified using the KUBECONFIG environment variable; all of t

Continue reading on Kubernetes Blog

Opens in a new tab

Read Full Article
15 views

Related Articles

What we’re looking for in Startup Battlefield 2026 and how to put your best application forward
How-To

What we’re looking for in Startup Battlefield 2026 and how to put your best application forward

TechCrunch • 23h ago

Build Days That Actually Mean Something
How-To

Build Days That Actually Mean Something

Medium Programming • 1d ago

I have blogged about the difference between code coverage and test coverage and why it matters to distinguish between these 2.
How-To

I have blogged about the difference between code coverage and test coverage and why it matters to distinguish between these 2.

Dev.to Beginners • 1d ago

The origin story of Apple’s long-running relationship with FoxConn
How-To

The origin story of Apple’s long-running relationship with FoxConn

The Verge • 1d ago

How to Optimize Big Data Platform Costs Across the Data Lifecycle
How-To

How to Optimize Big Data Platform Costs Across the Data Lifecycle

Hackernoon • 1d ago

Discover More Articles