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

kubectl scale up fails- weblogic.validating.webhook validation error #4640

Open
rsureshbe81 opened this issue Feb 2, 2024 · 3 comments
Open

Comments

@rsureshbe81
Copy link

rsureshbe81 commented Feb 2, 2024

We have requirement to increase the pod count from 8 to 9 to handle production load, when we tried to scale up pod to 9 by running kubectl scale command (below), getting following error. Tried all options from oracle github nothing works. Please suggest how to increase pod count.

Command: kubectl scale --replicas=9 clusters/workout-dev-domain-dev-domain-cluster -n workout-dev

error: clusters.weblogic.oracle "workout-dev-domain-dev-domain-cluster" could not be patched: admission webhook "weblogic.validating.webhook" denied the request: Change request to cluster resource 'workout-dev-domain-cluster' cannot be honored because the replica count would exceed the cluster size '8'

@rjeberhard
Copy link
Member

WebLogic clusters have a maximum size that comes from the domain configuration (config.xml). The validation will not allow you to scale past this limit, so you must first increase the cluster size. Are you using model in image or domain on PV? Is this cluster configured or dynamic?

@rsureshbe81
Copy link
Author

Thanks, I tried to increase the cluster size (using below commands), I see same error. Our weblogic domain is stored in Azure storage -Persistent volume. Its dynamic cluster.

kubectl edit cluster workout-dev-domain-workout-dev-domain-cluster -n workout-dev
kubectl patch cluster workout-dev-domain-workout-dev-domain-cluster --type=merge -p '{"spec":{"replicas":9}}' -n workout
workout
-dev

@rjeberhard
Copy link
Member

@rsureshbe81, you need to increase the dynamic cluster size, as described here: https://docs.oracle.com/en/middleware/standalone/weblogic-server/14.1.1.0/clust/dynamic_clusters.html#GUID-64235312-7A83-4866-8E8F-D4294C9E0FB1.

After this, you need to force the operator to reread the domain configuration. This is done during the phase called "introspection" which can be forced, as described here: https://oracle.github.io/weblogic-kubernetes-operator/managing-domains/domain-lifecycle/introspection/#initiating-introspection.

Finally, your scaling commands will now work up to the new maximum cluster size that you've selected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants