kubectl-which-node

command module
v0.0.0-...-3d5ea3e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

README

kubectl-which-node

Contents

  • Description
  • Usage
  • Examples
  • Installation
  • Build from source

Description

This command display the kubernetes nodes in which a workload controller is deployed in. Workload controller can be replicaset, daemonset , deployment or any other standard controller.

All shortforms that kubernetes api server support , such as rs for replicaset , ds for daemonset is supported by the command. The command also supports relavent native kubectl flags.

Usage

Displays node(s) in which the object(s) is deployed on.

Usage:

  kubectl which node [kind] [name] [flags]
Examples:

To display which nodes a daemonset is deployed in:

daemonset-example

To display which nodes a deployment is deployed in:

daemonset-example

To display which nodes a pod is deployed in:

daemonset-example

Installation

# Get the binary
wget https://raw.githubusercontent.com/corneredrat/kubectl-which-node/master/bin/kubectl-which-node

# Change permissions
chmod +x kubectl-which-node

# Add to path
sudo mv ./kubectl-which-node /usr/bin/kubectl-which-node

Build from source

# Get code
git clone https://github.com/corneredrat/kubectl-which-node.git

# Run build script
./build

Documentation

Overview

Copyright © 2020 NAME HERE <EMAIL ADDRESS>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL