aboutsummaryrefslogtreecommitdiff
path: root/users/profiles/k8s.nix
blob: dd3d88b3e9570c62adaf21e16b724384bf7542c0 (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
{ self, pkgs, ... }:
{

  import = [
    "${self}/users/programs/k9s.nix"
    "${self}/users/programs/kubie.nix"
  ];

  home.packages = with pkgs; [
    kind # k8s in docker
    kubebuilder # generate controller
    kubectl
    kubernetes-helm # deploy applications
    kubelogin-oidc # OIDC plugin
  ];

  programs.fish = {
    shellAbbrs = {
      k = "kubectl";
      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";
    };
  };
}