selectdb / doris-operator

Doris kubernetes operator
Apache License 2.0
70 stars 36 forks source link

support setting image pull policy #35

Closed WinkerDu closed 3 months ago

WinkerDu commented 10 months ago

support setting image pull policy with spec.imagePullPolicy, more info: https://kubernetes.io/docs/concepts/containers/images/#updating-images

default pull policy is PullIfNotPresent

yaml example:

apiVersion: doris.selectdb.com/v1
kind: DorisCluster
...
spec:
  feSpec:
  image: iregistry.baidu-int.com/doris-rdw/rdw_doris_fe:v1.0.5
  imagePullPolicy: Always
..
intelligentfu commented 3 months ago

Hi, I am sorry for not approving your PR. imagePullPolicy set to 'IfNotPresent' is the best for Doris, because Doris's image is big, if always pulling from the remote repository will take much times than from local when restarted.