Merge pull request #2613 from wanjunlei/kubectl

add host local time to kubectl from toolbox
This commit is contained in:
KubeSphere CI Bot
2020-07-25 14:29:50 +08:00
committed by GitHub

View File

@@ -138,11 +138,28 @@ func (o *operator) CreateKubectlDeploy(username string) error {
},
Spec: v1.PodSpec{
Containers: []v1.Container{
{Name: "kubectl",
{
Name: "kubectl",
Image: o.kubectlImage,
VolumeMounts: []v1.VolumeMount{
{
Name: "host-time",
MountPath: "/etc/localtime",
},
},
},
},
ServiceAccountName: "kubesphere-cluster-admin",
Volumes: []v1.Volume{
{
Name: "host-time",
VolumeSource: v1.VolumeSource{
HostPath: &v1.HostPathVolumeSource{
Path: "/etc/localtime",
},
},
},
},
},
},
},