From 04b41d5d9a95184b43877f1ef1a19c7a17023fce Mon Sep 17 00:00:00 2001 From: staffadmin Date: Thu, 29 Aug 2024 12:45:58 +0200 Subject: [PATCH] update backup --- README.md | 78 +++++++++++++++++++++++++++++++++++++++++++++++++++++- backup.yml | 12 ++++----- 2 files changed, 83 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index f7389a2..d8be7b4 100644 --- a/README.md +++ b/README.md @@ -13,4 +13,80 @@ Add - lynis - unattended-upgrades - package - - firewall \ No newline at end of file + - firewall + + + +flux bootstrap gitea --owner=staffadmin --repository=cluster --private=false --personal=true --path=./clusters/test --hostname gitea.jingoh.fr --read-write-key=true + +GITEA_TOKEN=fdsfsd + +==> delete secret in flux-system + +┌─[stephane@staff] - [~] - [2024-08-28 01:05:37] +└─[130] <> flux bootstrap gitea --owner=staffadmin --repository=cluster --private=true --personal=true --path=clusters/test --hostname gitea.jingoh.fr --token-auth +► connecting to gitea.jingoh.fr +► cloning branch "main" from Git repository "https://gitea.jingoh.fr/staffadmin/cluster.git" +✔ cloned repository +► generating component manifests +✔ generated component manifests +✔ component manifests are up to date +► installing components in "flux-system" namespace +✔ installed components +✔ reconciled components +► determining if source secret "flux-system/flux-system" exists +► generating source secret +► applying source secret "flux-system/flux-system" +✔ reconciled source secret +► generating sync manifests +✔ generated sync manifests +✔ sync manifests are up to date +► applying sync manifests +✔ reconciled sync configuration +◎ waiting for GitRepository "flux-system/flux-system" to be reconciled +✗ gitrepository 'flux-system/flux-system' not ready: 'failed to checkout and determine revision: unable to clone 'https://gitea.jingoh.fr/staffadmin/cluster.git': authorization failed' +◎ waiting for Kustomization "flux-system/flux-system" to be reconciled +✗ client rate limiter Wait returned an error: context deadline exceeded +► confirming components are healthy +✔ helm-controller: deployment ready +✔ kustomize-controller: deployment ready +✔ notification-controller: deployment ready +✔ source-controller: deployment ready +✔ all components are healthy +✗ bootstrap failed with 2 health check failure(s): [error while waiting for GitRepository to be ready: 'gitrepository 'flux-system/flux-system' not ready: 'failed to checkout and determine revision: unable to clone 'https://gitea.jingoh.fr/staffadmin/cluster.git': authorization failed'', error while waiting for Kustomization to be ready: 'client rate limiter Wait returned an error: context deadline exceeded + + + + + +┌─[stephane@staff] - [~] - [2024-08-28 01:13:04] +└─[1] <> flux bootstrap gitea --owner=staffadmin --repository=cluster --private=true --personal=true --path=clusters/test --hostname gitea.jingoh.fr --token-auth +► connecting to gitea.jingoh.fr +► cloning branch "main" from Git repository "https://gitea.jingoh.fr/staffadmin/cluster.git" +✔ cloned repository +► generating component manifests +✔ generated component manifests +✔ component manifests are up to date +► installing components in "flux-system" namespace +✔ installed components +✔ reconciled components +► determining if source secret "flux-system/flux-system" exists +► generating source secret +► applying source secret "flux-system/flux-system" +✔ reconciled source secret +► generating sync manifests +✔ generated sync manifests +✔ sync manifests are up to date +► applying sync manifests +✔ reconciled sync configuration +◎ waiting for GitRepository "flux-system/flux-system" to be reconciled +✗ gitrepository 'flux-system/flux-system' not ready: 'failed to checkout and determine revision: unable to clone 'https://gitea.jingoh.fr/staffadmin/cluster.git': Get "https://gitea.jingoh.fr/staffadmin/cluster.git/info/refs?service=git-upload-pack": dial tcp: lookup gitea.jingoh.fr on 10.43.0.10:53: server misbehaving' +◎ waiting for Kustomization "flux-system/flux-system" to be reconciled +✗ client rate limiter Wait returned an error: context deadline exceeded +► confirming components are healthy +✔ helm-controller: deployment ready +✔ kustomize-controller: deployment ready +✔ notification-controller: deployment ready +✔ source-controller: deployment ready +✔ all components are healthy +✗ bootstrap failed with 2 health check failure(s): [error while waiting for GitRepository to be ready: 'gitrepository 'flux-system/flux-system' not ready: 'failed to checkout and determine revision: unable to clone 'https://gitea.jingoh.fr/staffadmin/cluster.git': Get "https://gitea.jingoh.fr/staffadmin/cluster.git/info/refs?service=git-upload-pack": dial tcp: lookup gitea.jingoh.fr on 10.43.0.10:53: server misbehaving'', error while waiting for Kustomization to be ready: 'client rate limiter Wait returned an error: context deadline exceeded'] \ No newline at end of file diff --git a/backup.yml b/backup.yml index 5ea6d2d..15525a8 100644 --- a/backup.yml +++ b/backup.yml @@ -21,12 +21,12 @@ 6464 token: !vault | $ANSIBLE_VAULT;1.2;AES256;prod - 35343365393734313034383961616333633265623037303436653739613935366666373237366562 - 3663316563663439363333396530376139663731346637390a366335333732303134316364363130 - 30313631343534643866383336623837363433303032376264373139306464313866313034663636 - 3961303030373531380a343061326437343066663665613833623533376437326630326432363566 - 37653135666331633532653436656461396131623736353962643632316135633562346631313036 - 6137356332636431643830666461333862613835336631333037 + 63386534653335616161343063363965636232616365323838316236313536623562303636646665 + 6335613338626363353139313435343162363239333164340a306537616564333364653563633266 + 64373463316334343535666439646235346436613637323166343134623261356566656532646362 + 3361323863663663630a613464646332316564343134306263306238613636633533646262623838 + 63613264336635393231366461633532393261353931383135616330616164376138353830663630 + 6263383234363732366533363433376531666137343137633030 tasks: