aboutsummaryrefslogblamecommitdiff
path: root/home/programs/dev/k8s.nix
blob: 18d706a010162cd29a0aa4c344e101e13f4e7c45 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
              
 




                                         
                                

    
                   

                    

                             
                    
                                                                                                                                                                    


      
{ pkgs, ... }:
{
  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";
    };
  };
}