A 'kubectl' plugin for interacting with Clusternet.

kubectl-clusternet

A kubectl plugin for interacting with Clusternet.

License Release build Downloads

Installation

Install With Krew

kubectl-clusternet can be installed using Krew, please install Krew with this guide first.

Then you can install Clusternet kubectl plugin with,

$ kubectl krew install clusternet

Download Binary

Alternatively, kubectl-clusternet can be directly downloaded from released packages.

Download a tar file matching your OS/Arch, and extract kubectl-clusternet binary from it.

Then copy ./kubectl-clusternet to a directory in your executable $PATH.

Build on Your Own

Clone this repo and run make bin

$ git clone https://github.com/clusternet/kubectl-clusternet
$ make bin

Then copy ./dist/kubectl-clusternet to a directory in your executable $PATH.

How it works

$ kubectl clusternet -h
Usage:
  clusternet [flags]
  clusternet [command]

Available Commands:
  apply       Apply a configuration to a resource by filename or stdin
  create      Create a resource from a file or from stdin.
  delete      Delete resources by filenames, stdin, resources and names, or by resources and label selector
  edit        Edit a resource on the server
  get         Display one or many resources
  help        Help about any command
  scale       Set a new size for a Deployment, ReplicaSet or Replication Controller
  version     Print the plugin version information
Similar Resources

🦥 kubectl plugin to easy to view pod

kubectl-lazy Install curl -sSL https://mirror.ghproxy.com/https://raw.githubusercontent.com/togettoyou/kubectl-lazy/main/install.sh | bash Or you can

Oct 13, 2022

A kubectl plugin to query multiple namespace at the same time.

kubemulti A kubectl plugin to query multiple namespace at the same time. $ kubemulti get pods -n cdi -n default NAMESPACE NAME

Mar 1, 2022

A very simple, silly little kubectl plugin / utility that guesses which language an application running in a kubernetes pod was written in.

A very simple, silly little kubectl plugin / utility that guesses which language an application running in a kubernetes pod was written in.

Mar 9, 2022

Kubectl plugin shows pod x node matrix with suitable colors to mitigate troubleshooting effort.

kubectl-pod-node-matrix WORK IN PROGRESS!! This plugin shows pod x node matrix with suitable colors to mitigate troubleshooting effort. Details Troubl

May 11, 2022

A kubectl plugin for easier query and operate k8s cluster.

A kubectl plugin for easier query and operate k8s cluster.

kube-query A kubectl plug-in that makes it easier to query and manipulate K8S clusters. (what is kubectl plug-in ?) Kube-query support some resource s

Jun 9, 2022

colorizes kubectl output

colorizes kubectl output

kubecolor Colorize your kubectl output get pods describe pods something wrong You can change color theme for light-backgrounded environment What's thi

Jan 8, 2023

kubetnl tunnels TCP connections from within a Kubernetes cluster to a cluster-external endpoint, e.g. to your local machine. (the perfect complement to kubectl port-forward)

kubetnl kubetnl (kube tunnel) is a command line utility to tunnel TCP connections from within a Kubernetes to a cluster-external endpoint, e.g. to you

Dec 16, 2022

This is kubectl-plugins repository

This is kubectl-plugins repository

golang CLI Template golang project template for building CLI Setup Setup by Command git clone https://github.com/mpppk/cli-template your_awesome_tool

Dec 20, 2021

The Coherence command line interface (CLI) is a lightweight tool, in the tradition of tools such as kubectl

The Coherence command line interface (CLI) is a lightweight tool, in the tradition of tools such as kubectl

Coherence Command Line Interface (CLI) Contents Overview Why use the Coherence C

Dec 15, 2022
Comments
  • supports child cluster impersonation

    supports child cluster impersonation

    What type of PR is this?

    kind/feature

    What this PR does / why we need it:

    add impersonation flags to child clusters on client-side

    added flags on client-side to use for child cluster impersonation, which could be used with kubectl clusternet --child-kubeconfig-xxx --cluster-id=xxx --clusternet-as=xxx

    Which issue(s) this PR fixes:

    partial Fixes clusternet/clusternet#488

    Special notes for your reviewer:

  • supports port forward in kubectl clusternet plugin

    supports port forward in kubectl clusternet plugin

    What type of PR is this?

    kind/feature

    What this PR does / why we need it:

    Which issue(s) this PR fixes:

    Fixes clusternet/clusternet#458

    Special notes for your reviewer:

  • delete subscription in parent cluster,  cm still exist in child cluster

    delete subscription in parent cluster, cm still exist in child cluster

    What happened:

    i set up a clusternet parent cls and a clusternet child cls (version 0.8.0). defined a configmap and a subscription in the parent cls, and kubectl clusternet apply those resource in the parent-cls.

    the configmap yaml is as follows: apiVersion: v1 kind: ConfigMap metadata: name: tdcc-cloud-credential4 namespace: default labels: tdcc.tke.cloud.tencent.com/used-by: tdcc-addon data: ExpiredTime: "1136185445" SessionToken: "Token1" TmpSecretId: "Id1" TmpSecretKey: "Key1"

    the subscription yaml is as follows: apiVersion: apps.clusternet.io/v1alpha1 kind: Subscription metadata: name: tke-event4 namespace: default spec: subscribers: - clusterAffinity: matchLabels: clusters.clusternet.io/cluster-id: 30845a4a-a4bc-430e-bba3-b1f8e3c37d44 feeds: - apiVersion: v1 kind: ConfigMap name: tdcc-cloud-credential4 namespace: default

    after the kubectl clusternet apply option, i can see the configmap created in the child cluster; but when i delete the subscription in the parent cluster using kubectl delete subscription command. the configmap still exist in child cluster

    What you expected to happen:

    configmap should be released once the subscription in parentcluster is deleted

    How to reproduce it (as minimally and precisely as possible):

    1, set up a clusternet environment 2,registry a child cluster to the parent cluster 3,apply a configmap and a subscription in the parent cluster 4,delete the subscription in the parent cluster

    Anything else we need to know?:

    use or dont use localization ,would have the same result.

    Environment:

    • kubectl clusternet plugin version(use kubectl clusternet version or kubectl-clusternet version):
    • Kubectl version (use kubectl version --client):
    • Cloud provider or hardware configuration:
    • OS (e.g: cat /etc/os-release):
    • Kernel (e.g. uname -a):
    • Others:
  • support

    support "--export-manifest" args

    What would you like to be added:

    support command: "kubectl clusternet apply -f nginx.yaml --dry-run --export-manifest", which will output the manifest yaml.

    Why is this needed:

    We try to use ArgoCD with Clusternet kubectl plugin, to execute the yaml from Gitrepo to clusters. The ArgoCD plugin need to read the output of “kubectl clusternet “ , and to sync the manifest yaml to cluster.

Kubectl golang - kubectl krew template repo

kubectl krew template repo There's a lot of scaffolding needed to set up a good

Jan 11, 2022
Kubectl Locality Plugin - A plugin to get the locality of pods

Kubectl Locality Plugin - A plugin to get the locality of pods

Nov 18, 2021
Kubectl plugin to ease sniffing on kubernetes pods using tcpdump and wireshark
Kubectl plugin to ease sniffing on kubernetes pods using tcpdump and wireshark

ksniff A kubectl plugin that utilize tcpdump and Wireshark to start a remote capture on any pod in your Kubernetes cluster. You get the full power of

Jan 4, 2023
kubectl plugin for signing Kubernetes manifest YAML files with sigstore
kubectl plugin for signing Kubernetes manifest YAML files with sigstore

k8s-manifest-sigstore kubectl plugin for signing Kubernetes manifest YAML files with sigstore ⚠️ Still under developement, not ready for production us

Nov 28, 2022
A kubectl plugin for finding decoded secret data with productive search flags.

kubectl-secret-data What is it? This is a kubectl plugin for finding decoded secret data. Since kubectl only outputs base64-encoded secrets, it makes

Dec 2, 2022
Kubectl plugin to run curl commands against kubernetes pods

kubectl-curl Kubectl plugin to run curl commands against kubernetes pods Motivation Sending http requests to kubernetes pods is unnecessarily complica

Dec 22, 2022
A kubectl plugin for finding decoded secret data with productive search flags.

kubectl-secret-data What is it? This is a kubectl plugin for finding decoded secret data. Since kubectl outputs base64-encoded secrets basically, it m

Dec 2, 2022
A kubectl plugin for getting endoflife information about your cluster.
A kubectl plugin for getting endoflife information about your cluster.

kubectl-endoflife A kubectl plugin that checks your clusters for component compatibility and Kubernetes version end of life. This plugin is meant to a

Jul 21, 2022
A kubectl plugin to evict pods

kubectl-evict A kubectl plugin to evict pods. This plugin is good to remove a pod from your cluster or to test your PodDistruptionBudget. ?? Installat

Dec 7, 2022
kubectl plugin for generating nginx-ingress compatible basic-auth secrets on kubernetes clusters

kubectl-htpasswd kubectl plugin for easily generating hashed basic auth secrets. Supported hash algorithms bcrypt Examples Create the secret on the cl

Jul 17, 2022