From 3b0ca9ff53ba7de03a84d13738891a3f860181c9 Mon Sep 17 00:00:00 2001 From: Devin Buhl Date: Tue, 10 Jan 2023 20:25:14 -0500 Subject: [PATCH] chore: housekeeping Signed-off-by: Devin Buhl --- .taskfiles/ClusterTasks.yml | 1 + README.md | 2 +- configure | 2 +- kubernetes/flux/config/flux.yaml | 16 ++++++++++++++++ 4 files changed, 19 insertions(+), 2 deletions(-) diff --git a/.taskfiles/ClusterTasks.yml b/.taskfiles/ClusterTasks.yml index 1f79debc..e55a1f4b 100644 --- a/.taskfiles/ClusterTasks.yml +++ b/.taskfiles/ClusterTasks.yml @@ -16,6 +16,7 @@ tasks: - sops --decrypt {{.KUBERNETES_DIR}}/flux/vars/cluster-secrets.sops.yaml | kubectl apply -f - - kubectl apply -f {{.KUBERNETES_DIR}}/flux/vars/cluster-settings.yaml - kubectl apply --kustomize {{.KUBERNETES_DIR}}/flux/config + - sleep 5 - task: reconcile preconditions: - sh: test -f {{.SOPS_AGE_KEY_FILE}} diff --git a/README.md b/README.md index 478d23b2..a8dfd497 100644 --- a/README.md +++ b/README.md @@ -216,7 +216,7 @@ In order to use Terraform and `cert-manager` with the Cloudflare DNS challenge y 6. Reboot the nodes ```sh - task ansible:reboot + task ansible:force-reboot ``` ### ⛵ Installing k3s with Ansible diff --git a/configure b/configure index c5c64af5..316c46cf 100755 --- a/configure +++ b/configure @@ -491,7 +491,7 @@ success() { _log() { local type="${1}" local msg="${2}" - printf 'timestamp="%s" type="%s" message="%s"\n' "$(date --rfc-3339=seconds)" "${type}" "${msg}" + printf 'timestamp="%s" type="%s" message="%s"\n' "$(date)" "${type}" "${msg}" } main "$@" diff --git a/kubernetes/flux/config/flux.yaml b/kubernetes/flux/config/flux.yaml index 5eef9e34..13b3d02d 100644 --- a/kubernetes/flux/config/flux.yaml +++ b/kubernetes/flux/config/flux.yaml @@ -34,3 +34,19 @@ spec: group: networking.k8s.io version: v1 kind: NetworkPolicy + - patch: | + - op: add + path: /spec/template/spec/containers/0/args/- + value: --concurrent=8 + - op: add + path: /spec/template/spec/containers/0/args/- + value: --kube-api-qps=500 + - op: add + path: /spec/template/spec/containers/0/args/- + value: --kube-api-burst=1000 + - op: add + path: /spec/template/spec/containers/0/args/- + value: --requeue-dependency=5s + target: + kind: Deployment + name: "(kustomize-controller|helm-controller|source-controller)"