Skip to content

kubectx

Kubectl plugin that helps you switch between clusters

Faster way to switch between clusters in kubectl.

devops

https://github.com/ahmetb/kubectx

amd64 armhf arm64

Installation

1. Add WakeMeOps repository

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

2. Install kubectx

sudo apt install kubectx

Snippets

FROM wakemeops/minideb:bullseye

RUN install_packages \
    kubectx=0.9.4*

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

Download URLs

Version SHA256 Size (KB)
0.9.4 fdfd49ef1209f20f6b3ddf62a9ef3946d93e38d1bcd4acb3ec8b565b7680ec14 803
Version SHA256 Size (KB)
0.9.5 3ca4ada3a93d7e76ddc57205481dc249a59e091881fd871f4214881235b0c070 710
0.9.4 8a98065b26a79d58b980414bd78c848fc709d7355cad3c8c0642e64cd9d70b5a 685
Version SHA256 Size (KB)
0.9.5 f03910d8e9f37e3d1d5dd361fe248ad9552a1a7515fd514a63429def0810317f 737
0.9.4 e858fafeb26103547103722c62fe055562079fb2f3db1f101aa2c998c024b748 695

Blueprints

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

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

- name: kubectx
  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 clusters
  description: Faster way to switch between clusters in kubectl.
  fetch:
    url: https://github.com/ahmetb/kubectx/releases/download/v{{version}}/kubectx_v{{version}}_linux_{{target}}.tar.gz
    targets:
      amd64: x86_64
  script:
    - mv kubectx {{src}}/usr/bin/kubectx
    - ln -s /usr/bin/kubectx {{src}}/usr/bin/kubectl-ctx

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

Click here to see kubectx release hashes
https://github.com/upciti/wakemeops/blob/main/blueprints/devops/kubectx/ops2deb.lock.yml
- url: https://github.com/ahmetb/kubectx/releases/download/v0.9.4/kubectx_v0.9.4_linux_x86_64.tar.gz
  sha256: db5a48e85ff4d8c6fa947e3021e11ba4376f9588dd5fa779a80ed5c18287db22
  timestamp: 2021-12-14 15:37:09+00:00
- url: https://github.com/ahmetb/kubectx/releases/download/v0.9.4/kubectx_v0.9.4_linux_arm64.tar.gz
  sha256: 5fab3c0624a83cf8fff5c34d90f854af6fa8b501ed63306aaf5355303ae884ed
  timestamp: 2022-01-30 16:22:16+00:00
- url: https://github.com/ahmetb/kubectx/releases/download/v0.9.4/kubectx_v0.9.4_linux_armhf.tar.gz
  sha256: 7132ed27daf0c93b259452032703721bbc881bc1655a4eb5f6df3d489f1ef1bb
  timestamp: 2022-01-30 16:22:16+00:00
- url: https://github.com/ahmetb/kubectx/releases/download/v0.9.5/kubectx_v0.9.5_linux_arm64.tar.gz
  sha256: 40a69c3156984cffb2766e729c8d756aa8d8c0926ef697ae8be12bd25161cd35
  timestamp: 2023-07-14 03:27:40+00:00
- url: https://github.com/ahmetb/kubectx/releases/download/v0.9.5/kubectx_v0.9.5_linux_armhf.tar.gz
  sha256: 831a64a105191772f1810551f4a244449bd0cb771c5a83aeabc97856ba9a3337
  timestamp: 2023-07-14 03:27:40+00:00

Badge

WakeMeOps

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