Skip to content

kubens

Kubectl plugin that helps you switch between namespaces

Faster way to switch between namespaces in kubectl.

devops

https://github.com/ahmetb/kubectx

arm64 armhf amd64

Installation

1. Add WakeMeOps repository

curl -sSL https://raw.githubusercontent.com/upciti/wakemeops/main/assets/install_repository | sudo bash

2. Install kubens

sudo apt install kubens

Snippets

FROM wakemeops/minideb:bullseye

RUN install_packages \
    kubens=0.9.4*

USER 1001
- name: Install dependencies
  uses: upciti/wakemeops-action@v1
  with:
    packages: |
      kubens=0.9.4*

Download URLs

Version SHA256 Size (KB)
0.9.4 7b9c1451510ab7d27a0d3e3d48548544f548d0b7dbbe98d3f11c1ee9f303a508 5439
Version SHA256 Size (KB)
0.9.5 2212786b40f6950fed8857cb141f97fe33bc9ae7410c859e0d94c41d1a32ff07 5414
0.9.4 acb4b608391d9091ca4814dcfd7156eb15b5efdb84113d2f4c50925b8bc9c6c8 4552
Version SHA256 Size (KB)
0.9.5 6b9b53a93a6aba5f36266a506783be3b9e07a57c0493d43acab9c7df126bc5b8 5474
0.9.4 429e47f3eaa3de3fe53875ad03afefbc44dfe244a122e18ed80bb3d0543586fa 4520

Blueprints

Debian packages listed on this page are generated from op2deb YAML blueprints. Blueprints for kubens are versioned here.

Click here to see kubens ops2deb blueprints
https://github.com/upciti/wakemeops/blob/main/blueprints/devops/kubens/ops2deb.yml
- name: kubens
  version: 0.9.4
  revision: "3"
  homepage: https://github.com/ahmetb/kubectx
  summary: kubectl plugin that helps you switch between namespaces
  description: Faster way to switch between namespaces in kubectl.
  fetch: https://github.com/ahmetb/kubectx/releases/download/v{{version}}/kubens_v{{version}}_linux_x86_64.tar.gz
  script:
    - mv kubens {{src}}/usr/bin/kubens
    - ln -s /usr/bin/kubens {{src}}/usr/bin/kubectl-ns

- name: kubens
  matrix:
    architectures:
      - arm64
      - armhf
    versions:
      - 0.9.4
      - 0.9.5
  revision: "3"
  homepage: https://github.com/ahmetb/kubectx
  summary: kubectl plugin that helps you switch between namespaces
  description: Faster way to switch between namespaces in kubectl.
  fetch:
    url: https://github.com/ahmetb/kubectx/releases/download/v{{version}}/kubens_v{{version}}_linux_{{target}}.tar.gz
    targets:
      amd64: x86_64
  script:
    - mv kubens {{src}}/usr/bin/kubens
    - ln -s /usr/bin/kubens {{src}}/usr/bin/kubectl-ns

The blueprint fetch keyword contains a URL template pointing to kubens releases. Downloaded files are locked in a lockfile versioned here.

Click here to see kubens release hashes
https://github.com/upciti/wakemeops/blob/main/blueprints/devops/kubens/ops2deb.lock.yml
- url: https://github.com/ahmetb/kubectx/releases/download/v0.9.4/kubens_v0.9.4_linux_x86_64.tar.gz
  sha256: 8b3672961fb15f8b87d5793af8bd3c1cca52c016596fbf57c46ab4ef39265fcd
  timestamp: 2021-12-14 15:37:09+00:00
- url: https://github.com/ahmetb/kubectx/releases/download/v0.9.4/kubens_v0.9.4_linux_arm64.tar.gz
  sha256: 7c2d0d4d46338bf400ebba1b23947d35b25725b9b4e3e1932bb88b3ec3f96a5a
  timestamp: 2022-01-30 16:22:16+00:00
- url: https://github.com/ahmetb/kubectx/releases/download/v0.9.4/kubens_v0.9.4_linux_armhf.tar.gz
  sha256: f7b888ba40ec139e1321616d62953d850c6de8ece3ac6e5169a8faba4eadb1c8
  timestamp: 2022-01-30 16:22:16+00:00
- url: https://github.com/ahmetb/kubectx/releases/download/v0.9.5/kubens_v0.9.5_linux_arm64.tar.gz
  sha256: a0de47f47e0d8e176929069657c96fb0d8f2422bff2550d608aa1df894635736
  timestamp: 2023-07-14 03:27:40+00:00
- url: https://github.com/ahmetb/kubectx/releases/download/v0.9.5/kubens_v0.9.5_linux_armhf.tar.gz
  sha256: 858535d328e113a1ae079c31d6e062060205a2f0771a35b0adf60512bcb6e495
  timestamp: 2023-07-14 03:27:40+00:00

Badge

WakeMeOps

[![WakeMeOps](https://docs.wakemeops.com/badges/kubens.svg)](https://docs.wakemeops.com/packages/kubens)
<a href="https://docs.wakemeops.com/packages/kubens">
  <img src="https://docs.wakemeops.com/badges/kubens.svg"/>
</a>
.. image:: https://docs.wakemeops.com/badges/kubens.svg
:target: https://docs.wakemeops.com/packages/kubens