Skip to content

Commit

Permalink
Merge pull request #99 from ryan4yin/k8s
Browse files Browse the repository at this point in the history
fix: k3s cluster
  • Loading branch information
ryan4yin authored Mar 17, 2024
2 parents bd555d7 + fbd13d6 commit 7d5a04f
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 13 deletions.
2 changes: 1 addition & 1 deletion hosts/k8s/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ full featured(see [what-have-k3s-removed-from-upstream-kubernetes] for details).
## Kubernetes Resources

Kubernetes resources are deployed and managed separately through
[nix-config/pulumi/k8s/](../../pulumi/k8s/).
[ryan4yin/k8s-gitops](https://github.com/ryan4yin/k8s-gitops).

[k3s]: https://github.com/k3s-io/k3s/
[what-have-k3s-removed-from-upstream-kubernetes]:
Expand Down
5 changes: 3 additions & 2 deletions hosts/k8s/k3s-prod-1-master-1/k3s.nix
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ in {
+ " --kube-apiserver-arg='--allow-privileged=true'" # required by kubevirt
+ " --node-taint=CriticalAddonsOnly=true:NoExecute" # prevent workloads from running on the master
+ " --data-dir /var/lib/rancher/k3s"
+ " --disable-helm-controller"
+ " --disable-helm-controller" # we use fluxcd instead
+ " --disable=traefik" # deploy our own ingress controller instead
+ " --etcd-expose-metrics true"
+ ''--etcd-snapshot-schedule-cron "0 */12 * * *"'';
+ " --etcd-snapshot-schedule-cron '0 */12 * * *'";
};
}
5 changes: 3 additions & 2 deletions hosts/k8s/k3s-prod-1-master-2/k3s.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ in {
+ " --kube-apiserver-arg='--allow-privileged=true'" # required by kubevirt
+ " --node-taint=CriticalAddonsOnly=true:NoExecute" # prevent workloads from running on the master
+ " --data-dir /var/lib/rancher/k3s"
+ " --disable-helm-controller"
+ " --disable-helm-controller" # we use fluxcd instead
+ " --disable=traefik" # deploy our own ingress controller instead
+ " --etcd-expose-metrics true"
+ ''--etcd-snapshot-schedule-cron "0 */12 * * *"'';
+ " --etcd-snapshot-schedule-cron '0 */12 * * *'";
};
}
5 changes: 3 additions & 2 deletions hosts/k8s/k3s-prod-1-master-3/k3s.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ in {
+ " --kube-apiserver-arg='--allow-privileged=true'" # required by kubevirt
+ " --node-taint=CriticalAddonsOnly=true:NoExecute" # prevent workloads from running on the master
+ " --data-dir /var/lib/rancher/k3s"
+ " --disable-helm-controller"
+ " --disable-helm-controller" # we use fluxcd instead
+ " --disable=traefik" # deploy our own ingress controller instead
+ " --etcd-expose-metrics true"
+ ''--etcd-snapshot-schedule-cron "0 */12 * * *"'';
+ " --etcd-snapshot-schedule-cron '0 */12 * * *'";
};
}
5 changes: 3 additions & 2 deletions hosts/k8s/kubevirt-shoryu/k3s.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ in {
+ " --service-node-port-range 80-32767"
+ " --kube-apiserver-arg='--allow-privileged=true'" # required by kubevirt
+ " --data-dir /var/lib/rancher/k3s"
+ " --disable-helm-controller"
+ " --disable-helm-controller" # we use fluxcd instead
+ " --disable=traefik" # deploy our own ingress controller instead
+ " --etcd-expose-metrics true"
+ ''--etcd-snapshot-schedule-cron "0 */12 * * *"'';
+ " --etcd-snapshot-schedule-cron '0 */12 * * *'";
};
}
5 changes: 3 additions & 2 deletions hosts/k8s/kubevirt-shushou/k3s.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ in {
+ " --service-node-port-range 80-32767"
+ " --kube-apiserver-arg='--allow-privileged=true'" # required by kubevirt
+ " --data-dir /var/lib/rancher/k3s"
+ " --disable-helm-controller"
+ " --disable-helm-controller" # we use fluxcd instead
+ " --disable=traefik" # deploy our own ingress controller instead
+ " --etcd-expose-metrics true"
+ ''--etcd-snapshot-schedule-cron "0 */12 * * *"'';
+ " --etcd-snapshot-schedule-cron '0 */12 * * *'";
};
}
5 changes: 3 additions & 2 deletions hosts/k8s/kubevirt-youko/k3s.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ in {
+ " --service-node-port-range 80-32767"
+ " --kube-apiserver-arg='--allow-privileged=true'" # required by kubevirt
+ " --data-dir /var/lib/rancher/k3s"
+ " --disable-helm-controller"
+ " --disable-helm-controller" # we use fluxcd instead
+ " --disable=traefik" # deploy our own ingress controller instead
+ " --etcd-expose-metrics true"
+ ''--etcd-snapshot-schedule-cron "0 */12 * * *"'';
+ " --etcd-snapshot-schedule-cron '0 */12 * * *'";
};
}

0 comments on commit 7d5a04f

Please sign in to comment.