[Aider] Phase 0
This commit is contained in:
18
examples/cluster.kat
Normal file
18
examples/cluster.kat
Normal 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
|
15
examples/simple-service/virtualLoadBalancer.kat
Normal file
15
examples/simple-service/virtualLoadBalancer.kat
Normal 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
|
21
examples/simple-service/workload.kat
Normal file
21
examples/simple-service/workload.kat
Normal 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"
|
Reference in New Issue
Block a user