-
Notifications
You must be signed in to change notification settings - Fork 4
/
.krew.yaml
56 lines (54 loc) · 2.15 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
apiVersion: krew.googlecontainertools.github.com/v1alpha2
kind: Plugin
metadata:
name: auth-proxy
spec:
homepage: https://github.com/int128/kauthproxy
shortDescription: Authentication proxy to a pod or service
description: |
This is a kubectl plugin to forward a local port to a pod or service via the authentication proxy.
It gets a token from the current credential plugin (e.g. aws-iam-authenticator or kubelogin).
Then it appends the authorization header to HTTP requests, like `authorization: Bearer token`.
All traffic is routed by the authentication proxy and port forwarder as follows:
[browser] -> [authentication proxy] -> [port forwarder] -> [pod]
caveats: |
You need to configure authentication in the kubeconfig.
See https://github.com/int128/kauthproxy for more.
version: {{ .TagName }}
platforms:
- bin: kauthproxy
{{ addURIAndSha "https://github.com/int128/kauthproxy/releases/download/{{ .TagName }}/kauthproxy_linux_amd64.zip" .TagName }}
selector:
matchLabels:
os: linux
arch: amd64
- bin: kauthproxy
{{ addURIAndSha "https://github.com/int128/kauthproxy/releases/download/{{ .TagName }}/kauthproxy_linux_arm64.zip" .TagName }}
selector:
matchLabels:
os: linux
arch: arm64
- bin: kauthproxy
{{ addURIAndSha "https://github.com/int128/kauthproxy/releases/download/{{ .TagName }}/kauthproxy_linux_arm.zip" .TagName }}
selector:
matchLabels:
os: linux
arch: arm
- bin: kauthproxy
{{ addURIAndSha "https://github.com/int128/kauthproxy/releases/download/{{ .TagName }}/kauthproxy_darwin_amd64.zip" .TagName }}
selector:
matchLabels:
os: darwin
arch: amd64
- bin: kauthproxy
{{ addURIAndSha "https://github.com/int128/kauthproxy/releases/download/{{ .TagName }}/kauthproxy_darwin_arm64.zip" .TagName }}
selector:
matchLabels:
os: darwin
arch: arm64
- bin: kauthproxy.exe
{{ addURIAndSha "https://github.com/int128/kauthproxy/releases/download/{{ .TagName }}/kauthproxy_windows_amd64.zip" .TagName }}
selector:
matchLabels:
os: windows
arch: amd64