nixos-configs/nixos/kubernetes/k3s/bootstrap.nix

21 lines
397 B
Nix
Raw Normal View History

2024-12-01 13:33:24 +00:00
{kubenix, ...}: {
imports = [kubenix.modules.k8s];
kubernetes.resources.clusterRoleBindings.cluster-admins = {
roleRef = {
apiGroup = "rbac.authorization.k8s.io";
kind = "ClusterRole";
name = "cluster-admin";
};
subjects = [
{
kind = "User";
name = "pim";
}
{
kind = "User";
name = "niels";
}
];
};
}