diff --git a/pkg/services/jumphost.go b/pkg/services/jumphost.go index 554afe0..32dcab8 100644 --- a/pkg/services/jumphost.go +++ b/pkg/services/jumphost.go @@ -135,8 +135,9 @@ func (jh jumpHost) generateDeployment(instance string, labels map[string]string) Spec: corev1.PodSpec{ Containers: []corev1.Container{ { - Name: JumpHostServiceName, - Image: jh.config.Image, + Name: JumpHostServiceName, + Image: jh.config.Image, + ImagePullPolicy: corev1.PullIfNotPresent, Ports: []corev1.ContainerPort{ { Name: "ssh", diff --git a/pkg/services/loadbalancer.go b/pkg/services/loadbalancer.go index bde9088..35add2c 100644 --- a/pkg/services/loadbalancer.go +++ b/pkg/services/loadbalancer.go @@ -108,8 +108,9 @@ func (lb loadBalancer) generateDeploymentAndSecret(instance string, labels map[s Spec: corev1.PodSpec{ Containers: []corev1.Container{ { - Name: LoadBalancerServiceName, - Image: lb.config.Image, + Name: LoadBalancerServiceName, + Image: lb.config.Image, + ImagePullPolicy: corev1.PullIfNotPresent, Ports: []corev1.ContainerPort{ { Name: "http",