Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ fleet-gitops/
├── applications/ # Application resources synced to the hub cluster
│ ├── kustomize-nginx/ # NGINX app using Flux CD + Kustomize
│ └── simple-guestbook/ # Guestbook app using Argo CD
├── kustomize-nginx-cluster/ # Flux manifests applied on member clusters for NGINX
├── rollout/ # Hub-level bootstrap manifests
│ ├── kustomize-nginx/ # Flux GitRepository & Kustomization for NGINX
│ └── guestbook/ # Argo CD AppProject & Application for Guestbook
Expand All @@ -39,6 +40,7 @@ Deploys an NGINX application across multiple clusters using Flux CD for GitOps r

- **Hub bootstrap:** [`rollout/kustomize-nginx/`](rollout/kustomize-nginx/)
- **Application resources:** [`applications/kustomize-nginx/`](applications/kustomize-nginx/)
- **Member-cluster Flux resources:** [`kustomize-nginx-cluster/`](kustomize-nginx-cluster/)
- **Detailed guide:** [`rollout/kustomize-nginx/README.md`](rollout/kustomize-nginx/README.md)

### Guestbook via Argo CD
Expand Down
5 changes: 5 additions & 0 deletions kustomize-nginx-cluster/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
resources:
- namespace.yaml
- rbac.yaml
- git-repository.yaml
- kustomization-nginx-application.yaml
4 changes: 4 additions & 0 deletions kustomize-nginx-cluster/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: nginx-demo
26 changes: 26 additions & 0 deletions kustomize-nginx-cluster/rbac.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: flux-permissions
namespace: nginx-demo
rules:
- apiGroups: ["apps"]
resources: ["deployments", "replicasets"]
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
- apiGroups: [""]
resources: ["pods", "configmaps", "secrets", "services", "serviceaccounts"]
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: flux-permissions
namespace: nginx-demo
subjects:
- kind: ServiceAccount
name: flux-applier
namespace: flux-system
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: flux-permissions