- 7 CRDs (Agent, AgentConfig, AgentGroup, Channel, Provider, WorkflowTemplate, CompliancePolicy) - 3 controllers (Agent, WorkflowTemplate, CompliancePolicy) - Generated deepcopy methods (controller-gen v0.16.5) - Dockerfile (multi-stage Go build) - Nix build-image.nix (dockerTools.streamLayeredImage) - Helm chart with RBAC, deployment, service account - Deploy manifests (RBAC + controller deployment) - Sample manifests for all 7 CRDs - Quickstart script - Successfully deployed to k3s on n97-mini: - Controller running and reconciling - All 7 CRDs registered - Agent CR creates Pod (ErrImagePull expected — no agent image yet) - Controller logs show reconciliation working
49 lines
No EOL
1.1 KiB
YAML
49 lines
No EOL
1.1 KiB
YAML
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: kubeclaw-controller
|
|
namespace: scobleclaw
|
|
labels:
|
|
app: kubeclaw
|
|
component: controller
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: kubeclaw
|
|
component: controller
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: kubeclaw
|
|
component: controller
|
|
spec:
|
|
serviceAccountName: kubeclaw-controller
|
|
containers:
|
|
- name: manager
|
|
image: kubeclaw/controller:latest
|
|
imagePullPolicy: Never
|
|
args:
|
|
- --health-probe-bind-address=:8081
|
|
- --metrics-bind-address=:8080
|
|
ports:
|
|
- name: metrics
|
|
containerPort: 8080
|
|
- name: health
|
|
containerPort: 8081
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /healthz
|
|
port: health
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /readyz
|
|
port: health
|
|
resources:
|
|
requests:
|
|
cpu: 100m
|
|
memory: 128Mi
|
|
limits:
|
|
cpu: 500m
|
|
memory: 256Mi |