Skip to content

kubermatic-labs/sample-kube-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kubermatic Kubernetes client example

This repository provides an example of how to create a KKP cluster at a GCP cloud provider using the Kubernetes API.

NOTE: The example works only with KKP 2.21, and it's a TECHNOLOGY PREVIEW. Not all features are supported and bugs can occur.

Steps the client executes:

  1. Creates a project
  2. Creates a user cluster
  3. Initializes a user cluster client
  4. Creates two nodes
  5. Creates a nginx pod

How to run the client

go run . \
--gcp-service-account=<path-to-sa> \
--gcp-network=<gcp-network> \
--gcp-subnet=<gcp-subnet> \
--seed-kubeconfig=<path-to-seed-kubeconfig>

About

Reference for customers how to create KKP project, cluster and nodes over k8s API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages