- 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
45 lines
1.3 KiB
YAML
45 lines
1.3 KiB
YAML
apiVersion: apiextensions.crossplane.io/v1
|
|
kind: Composition
|
|
metadata:
|
|
name: vm-ubuntu
|
|
labels:
|
|
provider: proxmox
|
|
spec:
|
|
writeConnectionSecretsToRef:
|
|
name: vm-connection-secret
|
|
namespace: crossplane-system
|
|
compositeTypeRef:
|
|
apiVersion: proxmox.yourorg.io/v1alpha1
|
|
kind: ProxmoxVM
|
|
resources:
|
|
- name: proxmox-vm
|
|
base:
|
|
apiVersion: proxmox.yourorg.io/v1alpha1
|
|
kind: ProxmoxVM
|
|
spec:
|
|
forProvider:
|
|
node: pve1
|
|
cpu: 2
|
|
memory: 4Gi
|
|
disk: 50Gi
|
|
storage: local-lvm
|
|
network: vmbr0
|
|
image: ubuntu-22.04-cloud
|
|
site: us-east-1
|
|
patches:
|
|
- type: FromCompositeFieldPath
|
|
fromFieldPath: spec.forProvider.name
|
|
toFieldPath: spec.forProvider.name
|
|
- type: FromCompositeFieldPath
|
|
fromFieldPath: spec.forProvider.cpu
|
|
toFieldPath: spec.forProvider.cpu
|
|
- type: FromCompositeFieldPath
|
|
fromFieldPath: spec.forProvider.memory
|
|
toFieldPath: spec.forProvider.memory
|
|
- type: FromCompositeFieldPath
|
|
fromFieldPath: spec.forProvider.disk
|
|
toFieldPath: spec.forProvider.disk
|
|
- type: FromCompositeFieldPath
|
|
fromFieldPath: spec.forProvider.site
|
|
toFieldPath: spec.forProvider.site
|