Files
Sankofa/gitops/templates/cluster/k3s-cluster.yaml
defiQUG 6f28146ac3 Initial Phoenix Sankofa Cloud setup
- Complete project structure with Next.js frontend
- GraphQL API backend with Apollo Server
- Portal application with NextAuth
- Crossplane Proxmox provider
- GitOps configurations
- CI/CD pipelines
- Testing infrastructure (Vitest, Jest, Go tests)
- Error handling and monitoring
- Security hardening
- UI component library
- Documentation
2025-11-28 12:54:33 -08:00

41 lines
871 B
YAML

apiVersion: v1
kind: Namespace
metadata:
name: "{{ .namespace }}"
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: k3s-cluster-sa
namespace: "{{ .namespace }}"
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: k3s-cluster-admin
rules:
- apiGroups: [""]
resources: ["*"]
verbs: ["*"]
- apiGroups: ["apps"]
resources: ["*"]
verbs: ["*"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: k3s-cluster-admin-binding
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: k3s-cluster-admin
subjects:
- kind: ServiceAccount
name: k3s-cluster-sa
namespace: "{{ .namespace }}"
---
# This is a template for creating a k3s cluster via Crossplane
# The actual implementation would use a Crossplane provider
# to provision VMs and install k3s on them