Skip to content

Commit

Permalink
Merge pull request #271 from linkernetworks/hwchiu/request-cpu
Browse files Browse the repository at this point in the history
Set the request CPU to 50m for nfs-provisioner.
  • Loading branch information
John-Lin authored Aug 23, 2018
2 parents cba1ea9 + 0fa6421 commit a1d39b5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/storageprovider/nfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
appsv1 "k8s.io/api/apps/v1"
"k8s.io/api/core/v1"
storagev1 "k8s.io/api/storage/v1"
"k8s.io/apimachinery/pkg/api/resource"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)

Expand Down Expand Up @@ -72,6 +73,11 @@ func getDeployment(name string, storage *entity.Storage) *appsv1.Deployment {
VolumeMounts: []v1.VolumeMount{
{Name: volumeName, MountPath: "/persistentvolumes"},
},
Resources: v1.ResourceRequirements{
Requests: v1.ResourceList{
"cpu": resource.MustParse("50m"),
},
},
},
},
Volumes: []v1.Volume{
Expand Down

0 comments on commit a1d39b5

Please sign in to comment.