Skip to content

Mount /dev/shm fix #38 #39

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 7, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions pool/strategy/kubernetes/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,18 @@ func (p *kubDnsProvider) Create(podName string, nodeParams nodeParams) (nodeAddr
container.Name = podName
container.Image = nodeParams.Image
port, err := strconv.Atoi(nodeParams.Port)
volume := apiV1.Volume{
Name: "dshm",
VolumeSource: apiV1.VolumeSource{
EmptyDir: &apiV1.EmptyDirVolumeSource{},
},
}
pod.Spec.Volumes = append(pod.Spec.Volumes, volume)
volumeMount := apiV1.VolumeMount{
Name: "dshm",
MountPath: "/dev/shm",
}
container.VolumeMounts = append(container.VolumeMounts, volumeMount)
if err != nil {
return "", errors.New("convert to int nodeParams.Port, " + err.Error())
}
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.