Skip to content

Commit

Permalink
fix: change imagePullPolicy for certificate-installation containers
Browse files Browse the repository at this point in the history
Reduces number of pulls from Docker Hub when container restarts/node reboots.
  • Loading branch information
sitnik committed Dec 16, 2020
1 parent 09b7f3a commit 9e0bf27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mirroroperator/registrymirror.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ def generate_daemon_set(self, daemon_set):
self.hostess_docker_registry,
self.hostess_docker_image,
self.hostess_docker_tag),
image_pull_policy="Always",
image_pull_policy="IfNotPresent",
resources=client.V1ResourceRequirements(
requests={
"memory": "64Mi", "cpu": "0.001"
Expand Down Expand Up @@ -299,7 +299,7 @@ def generate_daemon_set(self, daemon_set):
"-x"
],
image="alpine:3.6",
image_pull_policy="Always",
image_pull_policy="IfNotPresent",
resources=client.V1ResourceRequirements(
requests={"memory": "1Mi", "cpu": "0.001"},
limits={"memory": "32Mi", "cpu": "0.1"}
Expand Down

0 comments on commit 9e0bf27

Please sign in to comment.