fix
Signed-off-by: Howard Lau <howardlau1999@hotmail.com>
This commit is contained in:
parent
f8e325e446
commit
2c0d8fac02
|
@ -33,33 +33,8 @@ func (r *SeaweedReconciler) createFilerStatefulSet(m *seaweedv1.Seaweed) *appsv1
|
||||||
filerPodSpec.Containers = []corev1.Container{{
|
filerPodSpec.Containers = []corev1.Container{{
|
||||||
Name: "seaweedfs",
|
Name: "seaweedfs",
|
||||||
Image: m.Spec.Image,
|
Image: m.Spec.Image,
|
||||||
ImagePullPolicy: corev1.PullIfNotPresent,
|
ImagePullPolicy: m.BaseFilerSpec().ImagePullPolicy(),
|
||||||
Env: []corev1.EnvVar{
|
Env: append(m.BaseFilerSpec().Env(), kubernetesEnvVars...),
|
||||||
{
|
|
||||||
Name: "POD_IP",
|
|
||||||
ValueFrom: &corev1.EnvVarSource{
|
|
||||||
FieldRef: &corev1.ObjectFieldSelector{
|
|
||||||
FieldPath: "status.podIP",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
Name: "POD_NAME",
|
|
||||||
ValueFrom: &corev1.EnvVarSource{
|
|
||||||
FieldRef: &corev1.ObjectFieldSelector{
|
|
||||||
FieldPath: "metadata.name",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
Name: "NAMESPACE",
|
|
||||||
ValueFrom: &corev1.EnvVarSource{
|
|
||||||
FieldRef: &corev1.ObjectFieldSelector{
|
|
||||||
FieldPath: "metadata.namespace",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
Command: []string{
|
Command: []string{
|
||||||
"/bin/sh",
|
"/bin/sh",
|
||||||
"-ec",
|
"-ec",
|
||||||
|
|
|
@ -22,7 +22,7 @@ func (r *SeaweedReconciler) createMasterStatefulSet(m *seaweedv1.Seaweed) *appsv
|
||||||
masterPodSpec.Containers = []corev1.Container{{
|
masterPodSpec.Containers = []corev1.Container{{
|
||||||
Name: "seaweedfs",
|
Name: "seaweedfs",
|
||||||
Image: m.Spec.Image,
|
Image: m.Spec.Image,
|
||||||
ImagePullPolicy: corev1.PullIfNotPresent,
|
ImagePullPolicy: m.BaseMasterSpec().ImagePullPolicy(),
|
||||||
Env: append(m.BaseMasterSpec().Env(), kubernetesEnvVars...),
|
Env: append(m.BaseMasterSpec().Env(), kubernetesEnvVars...),
|
||||||
Command: []string{
|
Command: []string{
|
||||||
"/bin/sh",
|
"/bin/sh",
|
||||||
|
|
Loading…
Reference in New Issue