Not the answer you need?
Register and ask your own question!

How to change Percona XtraDB Cluster Operator imagePullPolicy

I am deploying operator on cluster which is offline , I have uploaded images with "docker load" but while deploying operator i am getting "Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io"
But images are already available, i check pod imagePullPolicy is always, Can i change to "IfNotPresent" for operator.
Tagged:

Best Answer

  • IvanPylypenkoIvanPylypenko Percona Staff Role
    Accepted Answer
    Hi
    PXC operator will rewrite stateful set after your patch since it's designed to keep sts with fields derived from CR and some defaults.
    Could you please decrease the number of operator pods to 0, try to patch again and share the outcome with us?

Answers

  • imranrazakhanimranrazakhan Current User Role Contributor
    I tried to patch but no effect
    kubectl patch statefulset cluster1-pxc -p '{"spec": {"template": {"spec":{"containers":[{"name":"pxc","imagePullPolicy":"Never"}]}}}}'
  • imranrazakhanimranrazakhan Current User Role Contributor
    Hi
    PXC operator will rewrite stateful set after your patch since it's designed to keep sts with fields derived from CR and some defaults.
    Could you please decrease the number of operator pods to 0, try to patch again and share the outcome with us?
    Yes its works, Thanks You
  • pschwallerpschwaller Percona Percona Staff Role
    @imranrazakhan, you can also submit an Improvement request in our Jira (https://jira.percona.com/projects/K8SPXC/issues) and we can consider exposing this directly in a future release.
  • imranrazakhanimranrazakhan Current User Role Contributor
    @imranrazakhan, you can also submit an Improvement request in our Jira (https://jira.percona.com/projects/K8SPXC/issues) and we can consider exposing this directly in a future release.
    I will send Improvement request, As currently i observed as soon as i set replicas=1 it start terminating pods
Sign In or Register to comment.

MySQL, InnoDB, MariaDB and MongoDB are trademarks of their respective owners.
Copyright ©2005 - 2020 Percona LLC. All rights reserved.