Skip to content
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.