blob: 88a7350a4d255d80e09d6be563318c940fcb25f3 (
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
|
{ pkgs, ... }: {
home.packages = with pkgs; [
kind # k8s in docker
kubebuilder # generate controller
kubectl
kubernetes-helm # deploy applications
kubie # kubeconfig browser https://github.com/sbstp/kubie
kubelogin-oidc # OIDC plugin
k9s # object explorer
# docker
dive # explore layers in docker images
];
home.file.kubie = {
target = ".kube/kubie.yaml";
text = ''
shell: fish
configs:
include:
- ~/.kube/rksconfig
prompt:
fish_use_rprompt: true
'';
};
programs.fish = {
shellAbbrs = {
k = "kubectl";
kctx = "kubie ctx";
klogs = "kubectl logs";
};
shellAliases = {
ukctx =
"${pkgs.gh}/bin/gh api --hostname github.rbx.com repos/Roblox/cell-lifecycle/contents/rks/kubeconfig --jq '.content' | base64 -d > ~/.kube/rksconfig";
};
};
}
|