Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deployment strategy of sentinel to Recreate #493

Closed
raviranjanelastisys opened this issue Sep 30, 2022 · 7 comments
Closed

deployment strategy of sentinel to Recreate #493

raviranjanelastisys opened this issue Sep 30, 2022 · 7 comments
Labels

Comments

@raviranjanelastisys
Copy link

Do you have the option to change the deployment strategy of sentinel to Recreate instead of default Rollingupdate ? I tried but i am facing below error .

ERROR:
  exit status 1

EXIT STATUS
  1

STDERR:
  WARNING: Kubernetes configuration file is group-readable. This is insecure. Location: /home/ravi/rabbitmq-release/ck8s-ops/environments/apps-v25/.state/admin-kubeconfig-wc.yaml
  WARNING: Kubernetes configuration file is world-readable. This is insecure. Location: /home/ravi/rabbitmq-release/ck8s-ops/environments/apps-v25/.state/admin-kubeconfig-wc.yaml
  Error: Failed to render chart: exit status 1: WARNING: Kubernetes configuration file is group-readable. This is insecure. Location: /home/ravi/rabbitmq-release/ck8s-ops/environments/apps-v25/.state/admin-kubeconfig-wc.yaml
  WARNING: Kubernetes configuration file is world-readable. This is insecure. Location: /home/ravi/rabbitmq-release/ck8s-ops/environments/apps-v25/.state/admin-kubeconfig-wc.yaml
  Error: unable to build kubernetes objects from release manifest: error validating "": error validating data: ValidationError(RedisFailover.spec.sentinel): unknown field "strategy" in com.spotahome.databases.v1.RedisFailover.spec.sentinel
  Error: plugin "diff" exited with error

COMBINED OUTPUT:
  WARNING: Kubernetes configuration file is group-readable. This is insecure. Location: /home/ravi/rabbitmq-release/ck8s-ops/environments/apps-v25/.state/admin-kubeconfig-wc.yaml
  WARNING: Kubernetes configuration file is world-readable. This is insecure. Location: /home/ravi/rabbitmq-release/ck8s-ops/environments/apps-v25/.state/admin-kubeconfig-wc.yaml
  Error: Failed to render chart: exit status 1: WARNING: Kubernetes configuration file is group-readable. This is insecure. Location: /home/ravi/rabbitmq-release/ck8s-ops/environments/apps-v25/.state/admin-kubeconfig-wc.yaml
  WARNING: Kubernetes configuration file is world-readable. This is insecure. Location: /home/ravi/rabbitmq-release/ck8s-ops/environments/apps-v25/.state/admin-kubeconfig-wc.yaml
  Error: unable to build kubernetes objects from release manifest: error validating "": error validating data: ValidationError(RedisFailover.spec.sentinel): unknown field "strategy" in com.spotahome.databases.v1.RedisFailover.spec.sentinel
  Error: plugin "diff" exited with error
@samof76
Copy link
Contributor

samof76 commented Oct 1, 2022

@raviranjanelastisys where did you try to change it? If you are trying to change in the Deployment resources managed by the operator, that's NOT the right thing to do. Its ideally a code change in the operator, and would need to do something like this.

But I definitely would want to hear the use-case.

@raviranjanelastisys
Copy link
Author

@raviranjanelastisys where did you try to change it? If you are trying to change in the Deployment resources managed by the operator, that's NOT the right thing to do. Its ideally a code change in the operator, and would need to do something like this.

But I definitely would want to hear the use-case.

@samof76 That would be great if you add in the operator , as i want to use the Podantiaffnity with requiredDuringSchedulingIgnoredDuringExecution and new the pods become pending state while rollingupdate as i have only 3 workers node and i don't want to increase the worker nodes !! So, i want this option for sentinel deployment

@samof76
Copy link
Contributor

samof76 commented Oct 3, 2022

@raviranjanelastisys please use topologySpreadConstraints instead. They give you better distribution of pods.

@raviranjanelastisys
Copy link
Author

Thanks @samof76 But seems like topologySpreadConstraints is not supported in your operator .


ERROR:
  exit status 1

EXIT STATUS
  1

STDERR:
  WARNING: Kubernetes configuration file is group-readable. This is insecure. Location: /home/ravi/rabbitmq-release/ck8s-ops/environments/apps-v25/.state/admin-kubeconfig-wc.yaml
  WARNING: Kubernetes configuration file is world-readable. This is insecure. Location: /home/ravi/rabbitmq-release/ck8s-ops/environments/apps-v25/.state/admin-kubeconfig-wc.yaml
  Error: Failed to render chart: exit status 1: WARNING: Kubernetes configuration file is group-readable. This is insecure. Location: /home/ravi/rabbitmq-release/ck8s-ops/environments/apps-v25/.state/admin-kubeconfig-wc.yaml
  WARNING: Kubernetes configuration file is world-readable. This is insecure. Location: /home/ravi/rabbitmq-release/ck8s-ops/environments/apps-v25/.state/admin-kubeconfig-wc.yaml
  Error: unable to build kubernetes objects from release manifest: error validating "": error validating data: ValidationError(RedisFailover.spec.sentinel): unknown field "topologySpreadConstraints" in com.spotahome.databases.v1.RedisFailover.spec.sentinel
  Error: plugin "diff" exited with error

COMBINED OUTPUT:
  WARNING: Kubernetes configuration file is group-readable. This is insecure. Location: /home/ravi/rabbitmq-release/ck8s-ops/environments/apps-v25/.state/admin-kubeconfig-wc.yaml
  WARNING: Kubernetes configuration file is world-readable. This is insecure. Location: /home/ravi/rabbitmq-release/ck8s-ops/environments/apps-v25/.state/admin-kubeconfig-wc.yaml
  Error: Failed to render chart: exit status 1: WARNING: Kubernetes configuration file is group-readable. This is insecure. Location: /home/ravi/rabbitmq-release/ck8s-ops/environments/apps-v25/.state/admin-kubeconfig-wc.yaml
  WARNING: Kubernetes configuration file is world-readable. This is insecure. Location: /home/ravi/rabbitmq-release/ck8s-ops/environments/apps-v25/.state/admin-kubeconfig-wc.yaml
  Error: unable to build kubernetes objects from release manifest: error validating "": error validating data: ValidationError(RedisFailover.spec.sentinel): unknown field "topologySpreadConstraints" in com.spotahome.databases.v1.RedisFailover.spec.sentinel
  Error: plugin "diff" exited with error

@samof76
Copy link
Contributor

samof76 commented Oct 4, 2022

Ref: #429

@github-actions
Copy link

This issue is stale because it has been open for 45 days with no activity.

@github-actions github-actions bot added the stale label Nov 19, 2022
@github-actions
Copy link

github-actions bot commented Dec 4, 2022

This issue was closed because it has been inactive for 14 days since being marked as stale.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants