Drop initial code

This commit is contained in:
Danny Bessems
2026-01-15 09:58:01 +00:00
parent 227d957219
commit 1e7c9ba5cb
228 changed files with 19883 additions and 1 deletions

View File

@@ -0,0 +1,7 @@
## Append samples of your project ##
resources:
- rig_v1alpha1_clusterblueprint.yaml
- rig_v1alpha1_infrablueprint.yaml
- rig_v1alpha1_harvesterblueprint.yaml
- rig_v1alpha1_vsphereblueprint.yaml
# +kubebuilder:scaffold:manifestskustomizesamples

View File

@@ -0,0 +1,22 @@
apiVersion: rig.appstack.io/v1alpha1
kind: ClusterBlueprint
metadata:
name: test-cluster-01
namespace: fleet-default
spec:
# Points to the InfraBlueprint (which links to Harvester + Quotas)
infraBlueprintRef: "dev-environment-v1"
# 1. Lifecycle
kubernetesVersion: "v1.33.5+rke2r1"
# 2. Topology: Control Plane (1 Node)
controlPlaneHA: false
# 3. Topology: Workers
workerPools:
- name: "app-workers"
quantity: 1
cpuCores: 4
memoryGb: 16
diskGb: 60

View File

@@ -0,0 +1,14 @@
apiVersion: rig.appstack.io/v1alpha1
kind: HarvesterBlueprint
metadata:
name: dev-harvester-config
namespace: fleet-default
spec:
# [MOVED] Technical connection details live here now
harvesterUrl: "https://172.27.27.190:6443"
# [MOVED] VM Template details
vmNamespace: "vanderlande"
imageName: "vanderlande/image-qhtpc"
networkName: "vanderlande/vm-lan"
sshUser: "rancher"

View File

@@ -0,0 +1,17 @@
apiVersion: rig.appstack.io/v1alpha1
kind: InfraBlueprint
metadata:
name: dev-environment-v1
namespace: fleet-default
spec:
cloudCredentialSecret: "cc-mrklm"
# [NEW] Added Rancher URL
rancherUrl: "https://rancher-mgmt.product.lan"
providerRef:
kind: HarvesterBlueprint
name: dev-harvester-config
quota:
maxCpu: 100
maxMemoryGb: 256
maxDiskGb: 3000

View File

@@ -0,0 +1,9 @@
apiVersion: rig.appstack.io/v1alpha1
kind: VsphereBlueprint
metadata:
labels:
app.kubernetes.io/name: deploy
app.kubernetes.io/managed-by: kustomize
name: vsphereblueprint-sample
spec:
# TODO(user): Add fields here

View File

@@ -0,0 +1,70 @@
# ---------------------------------------------------------
# 1. Technical Configuration (The Location)
# ---------------------------------------------------------
apiVersion: rig.appstack.io/v1alpha1
kind: VsphereBlueprint
metadata:
name: dev-vsphere-config
namespace: fleet-default
spec:
vCenter: "vcenter.vanderlande.com"
datacenter: "NL001"
folder: "ICT Digitalisation - Rancher"
resourcePool: "NL001 Development - Rancher/Resources"
datastore: "NL001 Development - Rancher SDRS"
network: "nl001.vDS.Distri.Vlan.1542"
template: "nl001-cp-ubuntu-22.04-amd64-20250327-5.15.0-135-rke2-k3s"
---
# ---------------------------------------------------------
# 2. Infra Manager (The Accountant & Identity)
# ---------------------------------------------------------
apiVersion: rig.appstack.io/v1alpha1
kind: InfraBlueprint
metadata:
name: dev-vsphere-infra
namespace: fleet-default
spec:
# Credentials (Must exist in Rancher/Kubernetes)
cloudCredentialSecret: "cc-lhtl9"
rancherUrl: "https://rancher.tst.vanderlande.com"
# Point to the vSphere Configuration above
providerRef:
kind: VsphereBlueprint
name: dev-vsphere-config
# Budget Limits for this Environment
quota:
maxCpu: 50 # Total vCPUs allowed
maxMemoryGb: 128 # Total RAM allowed
maxDiskGb: 5000 # Total Disk allowed
---
# ---------------------------------------------------------
# 3. Cluster Request (The User Goal)
# ---------------------------------------------------------
apiVersion: rig.appstack.io/v1alpha1
kind: ClusterBlueprint
metadata:
name: test-vsphere-cluster-01
namespace: fleet-default
spec:
# Link to the vSphere Infra defined above
infraBlueprintRef: "dev-vsphere-infra"
# Lifecycle
kubernetesVersion: "v1.31.12+rke2r1"
# Topology: Control Plane (1 Node)
# Uses default sizing from values.yaml (2 CPU / 8 GB)
controlPlaneHA: false
# Topology: Workers
# These sizes (GB) will be converted to MB automatically by your Strategy
workerPools:
- name: "app-workers"
quantity: 2
cpuCores: 4
memoryGb: 8 # Strategy converts to 8192 MB
diskGb: 100 # Strategy converts to 102400 MB