[Aider] Phase 0

This commit is contained in:
2025-05-10 18:18:58 -04:00
parent 2f0debf608
commit 1ae06781d6
14 changed files with 4438 additions and 55 deletions

18
examples/cluster.kat Normal file
View File

@ -0,0 +1,18 @@
apiVersion: kat.dws.rip/v1alpha1
kind: ClusterConfiguration
metadata:
name: my-kat-cluster
spec:
clusterCIDR: "10.100.0.0/16"
serviceCIDR: "10.200.0.0/16"
nodeSubnetBits: 7 # Results in /23 node subnets (e.g., 10.100.0.0/23, 10.100.2.0/23)
clusterDomain: "kat.example.local" # Overriding default
apiPort: 9115
agentPort: 9116
etcdPeerPort: 2380
etcdClientPort: 2379
volumeBasePath: "/opt/kat/volumes" # Overriding default
backupPath: "/opt/kat/backups" # Overriding default
backupIntervalMinutes: 60
agentTickSeconds: 10
nodeLossTimeoutSeconds: 45

View File

@ -0,0 +1,15 @@
apiVersion: kat.dws.rip/v1alpha1
kind: VirtualLoadBalancer
metadata:
name: my-simple-nginx # Should match workload name
namespace: default
spec:
ports:
- name: http
containerPort: 80
protocol: TCP
healthCheck:
exec:
command: ["curl", "-f", "http://localhost/"] # Nginx doesn't have curl by default, this is illustrative
initialDelaySeconds: 5
periodSeconds: 10

View File

@ -0,0 +1,21 @@
apiVersion: kat.dws.rip/v1alpha1
kind: Workload
metadata:
name: my-simple-nginx
namespace: default
spec:
type: SERVICE
source:
image: "nginx:latest"
replicas: 2
restartPolicy:
condition: ALWAYS
container:
name: nginx-container
resources:
requests:
cpu: "50m"
memory: "64Mi"
limits:
cpu: "100m"
memory: "128Mi"