diff --git a/README.md b/README.md index 831da22..8d2a8b0 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,32 @@ -# k8s-gitops +# K8s GitOps Configuration Repository -Kubernetes GitOps Configuration Repository \ No newline at end of file +This repository contains Kubernetes GitOps configurations managed by Argo CD. + +## Directory Structure + +``` +k8s-gitops/ +├── bootstrap/ # Argo CD App of Apps +├── infrastructure/ # Infrastructure components +├── platform/ # Platform services +├── security/ # Security components +└── apps/ # Business applications +``` + +## Components + +| Category | Component | Status | +|----------|-----------|--------| +| Infrastructure | Argo CD | Active | +| Platform | Keycloak | Pending | +| Platform | Rancher | Pending | +| Platform | Monitoring | Pending | +| Platform | Logging | Pending | +| Platform | Tracing | Pending | +| Platform | Harbor | Pending | +| Platform | Vault | Pending | +| Security | Falco | Pending | +| Security | Kyverno | Pending | +| Security | Trivy | Pending | +| Security | kube-bench | Pending | +| Platform | Velero | Pending | diff --git a/apps/.gitkeep b/apps/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/bootstrap/argocd-apps.yaml b/bootstrap/argocd-apps.yaml new file mode 100644 index 0000000..78e1d38 --- /dev/null +++ b/bootstrap/argocd-apps.yaml @@ -0,0 +1,20 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: apps + namespace: argocd +spec: + project: default + source: + repoURL: https://gitea.cloud.fbc.org.cn/ops/k8s-gitops.git + targetRevision: HEAD + path: apps + destination: + server: https://kubernetes.default.svc + namespace: argocd + syncPolicy: + automated: + prune: true + selfHeal: true + syncOptions: + - CreateNamespace=true diff --git a/infrastructure/argocd/.gitkeep b/infrastructure/argocd/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/platform/harbor/.gitkeep b/platform/harbor/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/platform/keycloak/.gitkeep b/platform/keycloak/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/platform/logging/.gitkeep b/platform/logging/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/platform/monitoring/.gitkeep b/platform/monitoring/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/platform/rancher/.gitkeep b/platform/rancher/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/platform/rollouts/.gitkeep b/platform/rollouts/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/platform/tracing/.gitkeep b/platform/tracing/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/platform/vault/.gitkeep b/platform/vault/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/platform/velero/.gitkeep b/platform/velero/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/security/falco/.gitkeep b/security/falco/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/security/kube-bench/.gitkeep b/security/kube-bench/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/security/kyverno/.gitkeep b/security/kyverno/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/security/trivy/.gitkeep b/security/trivy/.gitkeep new file mode 100644 index 0000000..e69de29