add resource request and limit for server pods #2462
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In the nightly parallel runs, ItParameterizedDomain failed intermittently. In the event log, some managed servers got killed. In the kublet.log, it shows:
Jul 15 09:00:15 kind-worker kubelet[312]: W0715 09:00:15.832773 312 empty_dir.go:421] Warning: Failed to clear quota on /var/lib/kubelet/pods/cc48f103-2b9b-49f0-a9a5-b7c11489d9dd/volumes/kubernetes.io~configmap/mii-weblogic-domain-introspect-cm: ClearQuota called, but quotas disabled
Jul 15 09:00:39 kind-worker kubelet[312]: E0715 09:00:39.973754 312 kuberuntime_container.go:476] preStop hook for container "weblogic-server" failed: command '/weblogic-operator/scripts/stopServer.sh' exited with 137:
Adding the resource request and limit for the server pods to prevent the pods get evicted by the k8s cluster.
Running the Jenkins job now.
https://build.weblogick8s.org:8443/job/weblogic-kubernetes-operator-kind-new/5714/
https://build.weblogick8s.org:8443/job/weblogic-kubernetes-operator-kind-new/5715/
https://build.weblogick8s.org:8443/job/weblogic-kubernetes-operator-kind-new/5716/