aboutsummaryrefslogtreecommitdiff
path: root/kontext.1
blob: 2b1bc40a685bc4cd719dad70693618bbbaf451f5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
.Dd May 21, 2023
.Dt KONTEXT 1
.Os
.
.Sh NAME
.Nm kontext
.Nd per shell Kubernetes contexts
.
.Sh SYNOPSIS
.Nm
.Op Fl h
.Op Fl n Ar namespace
.Ar context 
.
.Sh DESCRIPTION

The
.Nm
program sets per shell Kubernetes contexts
to allow power users to work on multiple
clusters at the same time.
.Pp
Note that
.Nm
is distributed as a shell fragment
that must be sourced. In order to
use it, add the following alias
to your shell:
.Bl -tag -width Ds
.It kontext="source kontext"
.El
.
.Pp
The arguments are as follows:
.Bl -tag -width Ds
.It Fl n | -namespace Ar namespace
Switch to
.Ar namespace . The default
namespace is 'default'.
.It Fl h | -help
Shows a short help message.
.It Ar context
The context name to use.
.El
.
.Sh EXAMPLES
.Bd -literal -offset indent
$ kontext -n kube-system foo
$ kontext foo
$ kontext -n kube-system
.Ed
.
.Sh AUTHORS
.An Christian Segundo Aq Mt christian@segundo.io