Skip to content

Commit c2add3f

Browse files
authored
add agents-sandbox-controller/manager chart (#168)
* add agents-sandbox-controller/manager chart * update controller/manager chart * add controller&manager make * add sandbox e2e * update manager&controller
1 parent cfa309b commit c2add3f

32 files changed

+2185
-1
lines changed

.github/workflows/e2e-kruise.yaml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
runs-on: ubuntu-24.04
2525
strategy:
2626
matrix:
27-
kind-version: [ v1.20.15, v1.24.6, v1.26.3 ]
27+
kind-version: [ v1.24.6, v1.26.3 ]
2828
steps:
2929
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3030
with:
@@ -49,6 +49,12 @@ jobs:
4949
- name: install Kruise game
5050
run: |
5151
make install-kruise-game-from-local
52+
- name: install Agents Sandbox Controller
53+
run: |
54+
make install-agents-sandbox-controller-from-local
55+
- name: install Agents Sandbox Manager
56+
run: |
57+
make install-agents-sandbox-manager-from-local
5258
5359
# 1.27+
5460
install-for-higher:
@@ -79,3 +85,9 @@ jobs:
7985
- name: install Kruise game
8086
run: |
8187
make install-kruise-game-from-local
88+
- name: install Agents Sandbox Controller
89+
run: |
90+
make install-agents-sandbox-controller-from-local
91+
- name: install Agents Sandbox Manager
92+
run: |
93+
make install-agents-sandbox-manager-from-local

Makefile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,22 @@ install-kruise-game-from-local:
3030
sleep 1
3131
kubectl -n kruise-game-system wait --for=condition=Ready pods -l control-plane=kruise-game-controller-manager --timeout=60s || exit 1
3232

33+
.PHONY: install-agents-sandbox-controller-from-local
34+
install-agents-sandbox-controller-from-local:
35+
kubectl get namespace sandbox-system > /dev/null 2>&1 || kubectl create namespace sandbox-system
36+
helm install agents-sandbox-controller charts/kruise-agents-sandbox-controller -n sandbox-system \
37+
--set replicaCount=1 \
38+
--set-json 'resources={"limits":{"cpu":"500m","memory":"512Mi"},"requests":{"cpu":"500m","memory":"512Mi"}}'
39+
sleep 1
40+
kubectl -n sandbox-system wait --for=condition=Ready pods -l control-plane=agents-sandbox-controller --timeout=60s || exit 1
41+
42+
.PHONY: install-agents-sandbox-manager-from-local
43+
install-agents-sandbox-manager-from-local:
44+
helm install agents-sandbox-manager charts/kruise-agents-sandbox-manager -n sandbox-system \
45+
--set replicaCount=1 \
46+
--set-json 'controller.resources={"cpu":"500m","memory":"512Mi"}' \
47+
--set-json 'proxy.resources={"cpu":"500m","memory":"512Mi"}'
48+
sleep 1
49+
kubectl -n sandbox-system wait --for=condition=Ready pods -l component=agents-sandbox-manager --timeout=60s || exit 1
50+
3351
install-from-local: install-kruise-from-local install-kruise-state-metrics-from-local
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../versions/kruise-agents-sandbox-controller/0.1.0
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../versions/kruise-agents-sandbox-manager/0.1.0
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Patterns to ignore when building packages.
2+
# This supports shell glob matching, relative path matching, and
3+
# negation (prefixed with !). Only one pattern per line.
4+
.DS_Store
5+
# Common VCS dirs
6+
.git/
7+
.gitignore
8+
.bzr/
9+
.bzrignore
10+
.hg/
11+
.hgignore
12+
.svn/
13+
# Common backup files
14+
*.swp
15+
*.bak
16+
*.tmp
17+
*.orig
18+
*~
19+
# Various IDEs
20+
.project
21+
.idea/
22+
*.tmproj
23+
.vscode/
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
apiVersion: v2
2+
name: agents-sandbox-controller
3+
description: The Helm chart for Agents Sandbox Controller
4+
5+
type: application
6+
7+
version: v0.1.0
8+
9+
appVersion: "v0.1.0"
10+
11+
keywords:
12+
- agent
13+
- sandbox
14+
- controller
15+
- kruise
16+
- kubernetes
17+
- openkruise
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Agents Sandbox Controller v0.1.0
2+
3+
## Configuration Parameters
4+
5+
The following table lists the configurable parameters of the agents-sandbox-controller chart and their default values.
6+
7+
| Parameter | Description | Default |
8+
|------------------------------|-------------------------------------------|-------------------------------------------------------------------------------------------------------------------------|
9+
| `replicaCount` | Number of sandbox-controller replicas | `2` |
10+
| `image.repository` | sandbox-controller image repository | `openkruise/agent-sandbox-controller` |
11+
| `image.tag` | sandbox-controller image tag | `v0.1.0` |
12+
| `image.pullPolicy` | Controller image pull policy | `IfNotPresent` |
13+
| `webhook.port` | Webhook service port | `9443` |
14+
| `metrics.port` | Metrics service port | `8443` |
15+
| `healthProbe.port` | Health probe port | `8081` |
16+
| `resources.limits.cpu` | Controller CPU resource limit | `2` |
17+
| `resources.limits.memory` | Controller memory resource limit | `4Gi` |
18+
| `resources.requests.cpu` | Controller CPU resource request | `2` |
19+
| `resources.requests.memory` | Controller memory resource request | `4Gi` |
20+
| `namespace.name` | Namespace name for deployment | `sandbox-system` |
21+
| `serviceAccount.create` | Whether to create ServiceAccount | `true` |
22+
| `serviceAccount.automount` | Whether to automount ServiceAccount Token | `true` |
23+
| `serviceAccount.annotations` | ServiceAccount annotations | `{}` |
24+
| `serviceAccount.name` | ServiceAccount name to use | `""` |
25+
| `rbac.create` | Whether to create RBAC resources | `true` |
26+
| `imagePullSecrets` | Image pull secrets list | `[]` |
27+
| `nameOverride` | Override Chart name | `""` |
28+
| `fullnameOverride` | Override full name | `""` |
29+
| `podAnnotations` | Pod annotations | `{}` |
30+
| `podLabels` | Pod labels | `{}` |
31+
| `podSecurityContext` | Pod security context | `{runAsNonRoot: true, seccompProfile: {type: RuntimeDefault}}` |
32+
| `securityContext` | Container security context | `{allowPrivilegeEscalation: false, capabilities: {drop: [ALL], add: [NET_BIND_SERVICE]}, readOnlyRootFilesystem: true}` |
33+
| `nodeSelector` | Node selector for Pod scheduling | `{}` |
34+
| `tolerations` | Tolerations for Pod scheduling | `[]` |
35+
| `affinity` | Affinity for Pod scheduling | `{}` |
36+
37+
Specify each parameter using the `--set key=value[,key=value]` argument. For example:
38+
39+
```bash
40+
helm install agents-sandbox-controller . -n <namespace> openkruise/kruise-agents-sandbox-controller --set key=value...
41+
```

0 commit comments

Comments
 (0)