How amhiraq/pfa-repo works
PFA is an infrastructure-as-code repository for deploying a secured, observable Kubernetes cluster. The principal workflow is operator-triggered Terraform provisioning, Ansible cluster setup, then ArgoCD synchronization of security and monitoring resources from GitHub. The graph also preserves the documented metrics, logging, and security-scanning capabilities. Source excerpts were unavailable, so relationships are limited to those explicitly described in the README.
Main entry points: argocd-application ArgoCD · grafana-chart Grafana · promtail-chart Promtail · prometheus-chart Prometheus
Components 20
Infrastructure
- Terraform Infrastructure
terraform - AWS Resources
Cluster Setup
- Ansible Provisioning
ansible/install-k8s.yml - Kubernetes Cluster
GitOps and Security
- ArgoCD
argocd/argocd-application - GitHub Repository
- Pod Security Admission
kubernetes/psa/psa-namespaces.yaml - RBAC Roles
kubernetes/rbac/rbac-roles.yaml - Kyverno Policies
kubernetes/kyverno/policies.yaml - Policy Exceptions
kubernetes/kyverno/policy-exceptions.yaml
Observability
- Prometheus
helm-charts/prometheus-chart - Node Exporter
helm-charts/prometheus-chart - Grafana
helm-charts/grafana-chart - Loki
helm-charts/loki-chart - Promtail
helm-charts/promtail-chart - Pod Logs
Security Scanning
- GitHub Actions
.github/workflows/security-scan.yml - tfsec and Trivy
.github/workflows/security-scan.yml
Other components
- Operator
- PR or Push
Connections 19
- Operator → Terraform Infrastructure: runs apply
README.md - Terraform Infrastructure → AWS Resources: provisions
README.md - Operator → Ansible Provisioning: runs playbook
README.md - Ansible Provisioning → Kubernetes Cluster: provisions cluster
README.md - ArgoCD → GitHub Repository: syncs from
README.md - ArgoCD → Pod Security Admission: deploys
README.md - ArgoCD → RBAC Roles: deploys
README.md - ArgoCD → Kyverno Policies: deploys
README.md - ArgoCD → Prometheus: deploys
README.md - ArgoCD → Grafana: deploys
README.md - ArgoCD → Loki: deploys
README.md - ArgoCD → Promtail: deploys
README.md - Prometheus → Node Exporter: scrapes metrics
README.md - Promtail → Pod Logs: collects
README.md - Promtail → Loki: sends logs
README.md - Grafana → Prometheus: queries datasource
README.md - Grafana → Loki: queries datasource
README.md - PR or Push → GitHub Actions: triggers
README.md - GitHub Actions → tfsec and Trivy: runs scans
README.md