From c994697d7ac45a186ad25f2f0edcbe71ac2b2e8a Mon Sep 17 00:00:00 2001 From: rohow Date: Thu, 23 Apr 2026 16:28:51 +0800 Subject: [PATCH] docs(README): format code blocks for SSH key generation instructions --- README.md | 11 ----------- flux/README.md | 23 +++++++++++++++++++++++ 2 files changed, 23 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 413f536..a09d304 100644 --- a/README.md +++ b/README.md @@ -7,14 +7,3 @@ #### 应用相关 参见 [flux/README.md](flux/README.md) - -```shell -ssh-keygen -t ed25519 -C "flux" -f ./flux-git-auth -N "" - -ssh-keyscan github.com > ./known_hosts - -kubectl -n infra-gitops create secret generic flux-git-auth \ - --from-file=identity=./flux-git-auth \ - --from-file=identity.pub=./flux-git-auth.pub \ - --from-file=known_hosts=./known_hosts -``` diff --git a/flux/README.md b/flux/README.md index ed69104..9580391 100644 --- a/flux/README.md +++ b/flux/README.md @@ -32,6 +32,29 @@ flux/ └── apps/ # Halo, RustDesk, Whoami, 证书, Ingress ``` +## 前置准备 + +需要提前生成git访问凭证 + +```shell +ssh-keygen -t ed25519 -C "flux" -f ./flux-git-auth -N "" + +ssh-keyscan github.com > ./known_hosts + +kubectl -n infra-gitops create secret generic flux-git-auth \ + --from-file=identity=./flux-git-auth \ + --from-file=identity.pub=./flux-git-auth.pub \ + --from-file=known_hosts=./known_hosts +``` + +然后将 `flux-git-auth.pub` 文件内容添加到远端仓库中 + +应用flux实例 后续将自动开启部署流程 + +```shell +kubectl apply -f flux/flux-instance.yaml +``` + ## 部署顺序 ```