fix: correct readinessProbe for web pod#1786
Merged
rooftopcellist merged 1 commit intoansible:develfrom Mar 27, 2024
Merged
Conversation
dhageman
approved these changes
Mar 21, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
SUMMARY
Closes #1785
This PR corrects
readinessProbefor web pod.ISSUE TYPE
ADDITIONAL INFORMATION
Tested locally:
Result:
$ kubectl -n awx get deployment awx-demo-web -o yaml apiVersion: apps/v1 kind: Deployment ... spec: ... template: ... spec: containers: - args: ... - args: - /usr/bin/launch_awx_web.sh env: - name: AWX_COMPONENT value: web - name: SUPERVISOR_CONFIG_PATH value: /etc/supervisord_web.conf - name: MY_POD_NAMESPACE valueFrom: fieldRef: apiVersion: v1 fieldPath: metadata.namespace - name: MY_POD_IP valueFrom: fieldRef: apiVersion: v1 fieldPath: status.podIP - name: UWSGI_MOUNT_PATH value: / image: quay.io/ansible/awx:24.0.0 imagePullPolicy: IfNotPresent livenessProbe: ✅ exec: command: - sh - -c - | (exit $(/usr/bin/supervisorctl -c /etc/supervisord_task.conf status | grep -vc RUNNING)) failureThreshold: 3 initialDelaySeconds: 5 periodSeconds: 5 successThreshold: 1 timeoutSeconds: 1 name: awx-demo-web ports: - containerPort: 8052 protocol: TCP readinessProbe: ✅ failureThreshold: 3 httpGet: path: /api/v2/ping/ port: 8052 scheme: HTTP initialDelaySeconds: 20 periodSeconds: 5 successThreshold: 1 timeoutSeconds: 1 resources: requests: cpu: 100m memory: 128Mi terminationMessagePath: /dev/termination-log terminationMessagePolicy: File ...