added buildkitd sidecar to act runner
This commit is contained in:
parent
4814d854ee
commit
979bec7d91
1 changed files with 33 additions and 3 deletions
|
|
@ -163,15 +163,45 @@ func GetPodSpec(gitHubScope GitHubScopeDetails, bootstrapParams params.Bootstrap
|
||||||
Env: envs,
|
Env: envs,
|
||||||
VolumeMounts: []corev1.VolumeMount{
|
VolumeMounts: []corev1.VolumeMount{
|
||||||
{
|
{
|
||||||
Name: "runner-dir",
|
Name: "buildkitd-deamon",
|
||||||
MountPath: "/runner",
|
MountPath: "/run/user/1000/buildkit",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
Name: "buildkitd",
|
||||||
|
Image: "moby/buildkit:buildx-stable-1-rootless",
|
||||||
|
Args: []string{
|
||||||
|
"--allow-insecure-entitlement=network.host",
|
||||||
|
"--oci-worker-no-process-sandbox",
|
||||||
|
},
|
||||||
|
ImagePullPolicy: corev1.PullIfNotPresent,
|
||||||
|
ReadinessProbe: &corev1.Probe{
|
||||||
|
ProbeHandler: corev1.ProbeHandler{
|
||||||
|
Exec: &corev1.ExecAction{
|
||||||
|
Command: []string{
|
||||||
|
"buildctl",
|
||||||
|
"debug",
|
||||||
|
"workers",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
FailureThreshold: 3,
|
||||||
|
PeriodSeconds: 10,
|
||||||
|
SuccessThreshold: 1,
|
||||||
|
TimeoutSeconds: 1,
|
||||||
|
},
|
||||||
|
VolumeMounts: []corev1.VolumeMount{
|
||||||
|
{
|
||||||
|
Name: "buildkitd-deamon",
|
||||||
|
MountPath: "/run/user/1000/buildkit",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Volumes: []corev1.Volume{
|
Volumes: []corev1.Volume{
|
||||||
{
|
{
|
||||||
Name: "runner-dir",
|
Name: "buildkitd-deamon",
|
||||||
VolumeSource: corev1.VolumeSource{
|
VolumeSource: corev1.VolumeSource{
|
||||||
EmptyDir: &corev1.EmptyDirVolumeSource{},
|
EmptyDir: &corev1.EmptyDirVolumeSource{},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue