File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed
kubernetes/infra/manifests/gitlab-runner Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -22,14 +22,16 @@ gitlab-runner:
2222
2323 [runners.kubernetes]
2424 namespace = "{{.Release.Namespace}}"
25- image = "docker:24-dind "
25+ image = "alpine:3.19 "
2626 pull_policy = ["if-not-present"]
2727
28+ # Risorse per il container principale del job
2829 cpu_limit = "2"
2930 cpu_request = "500m"
3031 memory_limit = "4Gi"
3132 memory_request = "512Mi"
3233
34+ # Risorse per l'helper
3335 helper_cpu_limit = "500m"
3436 helper_cpu_request = "100m"
3537 helper_memory_limit = "256Mi"
@@ -39,7 +41,19 @@ gitlab-runner:
3941 poll_interval = 3
4042 poll_timeout = 180
4143
42- # Cache volume
44+ # Configurazione per buildah/podman (rootless)
45+ # Non serve privileged=true come con Docker
46+ [runners.kubernetes.pod_security_context]
47+ run_as_non_root = false
48+ # Buildah stable image gira come root di default, ma in modo sicuro
49+
50+ # Volume per storage temporaneo buildah
51+ [[runners.kubernetes.volumes.empty_dir]]
52+ name = "buildah-storage"
53+ mount_path = "/var/lib/containers"
54+ medium = ""
55+
56+ # Cache volume per artifacts
4357 [[runners.kubernetes.volumes.pvc]]
4458 name = "gitlab-runner-cache"
4559 mount_path = "/cache"
You can’t perform that action at this time.
0 commit comments