-
Notifications
You must be signed in to change notification settings - Fork 4
/
.krew.yaml
61 lines (61 loc) · 2.1 KB
/
.krew.yaml
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
55
56
57
58
59
60
61
apiVersion: krew.googlecontainertools.github.com/v1alpha2
kind: Plugin
metadata:
name: nsenter
spec:
version: {{ .TagName }}
homepage: https://github.com/pabateman/kubectl-nsenter
shortDescription: "Run shell command in Pod's namespace on the node over SSH connection"
description: |
This plugin establishes a connection to node that's running the Pod over SSH and uses
nsenter to run commands in the container's namespace. You would need something
like this to run programs that are missing in the container image but presents on node.
caveats: |
* This plugin needs SSH access to nodes
* Remote user must have root access
* Nodes need to have 'nsenter'
platforms:
- selector:
matchLabels:
os: linux
arch: amd64
{{addURIAndSha "https://github.com/pabateman/kubectl-nsenter/releases/download/{{ .TagName }}/kubectl-nsenter-linux-amd64.tar.gz" .TagName }}
bin: kubectl-nsenter
files:
- from: kubectl-nsenter-linux-amd64
to: kubectl-nsenter
- from: LICENSE
to: .
- selector:
matchLabels:
os: linux
arch: arm64
{{addURIAndSha "https://github.com/pabateman/kubectl-nsenter/releases/download/{{ .TagName }}/kubectl-nsenter-linux-arm64.tar.gz" .TagName }}
bin: kubectl-nsenter
files:
- from: kubectl-nsenter-linux-arm64
to: kubectl-nsenter
- from: LICENSE
to: .
- selector:
matchLabels:
os: darwin
arch: amd64
{{addURIAndSha "https://github.com/pabateman/kubectl-nsenter/releases/download/{{ .TagName }}/kubectl-nsenter-darwin-amd64.tar.gz" .TagName }}
bin: kubectl-nsenter
files:
- from: kubectl-nsenter-darwin-amd64
to: kubectl-nsenter
- from: LICENSE
to: .
- selector:
matchLabels:
os: darwin
arch: arm64
{{addURIAndSha "https://github.com/pabateman/kubectl-nsenter/releases/download/{{ .TagName }}/kubectl-nsenter-darwin-arm64.tar.gz" .TagName }}
bin: kubectl-nsenter
files:
- from: kubectl-nsenter-darwin-arm64
to: kubectl-nsenter
- from: LICENSE
to: .