Closed Iyogeshwari closed 11 months ago
We are deploying Jfrog Artifactory on OpenShift environment using Helm chart. Everything else works but for nginx pod is restarting continuously because of startup probe failed error. Below is Deployment.yaml file.
kind: Deployment apiVersion: apps/v1 metadata: resourceVersion: '33473748' name: daut-jfrog-gbl-p-daut-jfrog-gbl-nginx generation: 4 namespace: daut-jfrog-gbl-p labels: app: daut-jfrog-gbl app.kubernetes.io/instance: daut-jfrog-gbl-p chart: artifactory-107.59.11 component: nginx heritage: Helm spec: replicas: 1 selector: matchLabels: app: daut-jfrog-gbl component: nginx release: daut-jfrog-gbl-p template: metadata: creationTimestamp: null labels: app: daut-jfrog-gbl chart: artifactory-107.59.11 component: nginx heritage: Helm release: daut-jfrog-gbl-p annotations: checksum/nginx-artifactory-conf: 00ce768cb522b4dc50643a5c8a10453a6e59d35fe22e5907bd93ca7fcaee0617 checksum/nginx-conf: 0b0cf6330f01b98a27696f96a05d12af71a8828799ae95af8deccf044a8da933 spec: restartPolicy: Always initContainers:
rm -rfv /var/opt/jfrog/nginx/lost+found; mkdir -p /var/opt/jfrog/nginx/logs; resources: limits: cpu: '2' memory: 15Gi requests: cpu: 200m memory: 256Mi volumeMounts:
- curl -s -k --fail --max-time 5 http://localhost:80/router/api/v1/system/readiness timeoutSeconds: 5 periodSeconds: 10 successThreshold: 1 failureThreshold: 5 terminationMessagePath: /dev/termination-log name: nginx command: nginx '-g' daemon off; livenessProbe: exec: command:
- curl -s -k --fail --max-time 5 http://localhost:80/router/api/v1/system/readiness timeoutSeconds: 5 periodSeconds: 10 successThreshold: 1 failureThreshold: 5 terminationMessagePath: /dev/termination-log name: nginx command:
- curl -s -k --fail --max-time 5 http://localhost:80/router/api/v1/system/readiness initialDelaySeconds: 30 timeoutSeconds: 5 periodSeconds: 5 successThreshold: 1 failureThreshold: 90 volumeMounts: name: nginx-conf mountPath: /etc/nginx/nginx.conf subPath: nginx.conf name: nginx-artifactory-conf mountPath: /var/opt/jfrog/nginx/conf.d/ name: nginx-volume mountPath: /var/opt/jfrog/nginx name: ssl-certificates mountPath: /var/opt/jfrog/nginx/ssl terminationMessagePolicy: File image: 'releases-docker.jfrog.io/jfrog/nginx-artifactory-pro:7.59.11' serviceAccount: daut-jfrog-gbl-sa volumes:
- curl -s -k --fail --max-time 5 http://localhost:80/router/api/v1/system/readiness initialDelaySeconds: 30 timeoutSeconds: 5 periodSeconds: 5 successThreshold: 1 failureThreshold: 90 volumeMounts:
We are deploying Jfrog Artifactory on OpenShift environment using Helm chart. Everything else works but for nginx pod is restarting continuously because of startup probe failed error. Below is Deployment.yaml file.
kind: Deployment apiVersion: apps/v1 metadata: resourceVersion: '33473748' name: daut-jfrog-gbl-p-daut-jfrog-gbl-nginx generation: 4 namespace: daut-jfrog-gbl-p labels: app: daut-jfrog-gbl app.kubernetes.io/instance: daut-jfrog-gbl-p chart: artifactory-107.59.11 component: nginx heritage: Helm spec: replicas: 1 selector: matchLabels: app: daut-jfrog-gbl component: nginx release: daut-jfrog-gbl-p template: metadata: creationTimestamp: null labels: app: daut-jfrog-gbl chart: artifactory-107.59.11 component: nginx heritage: Helm release: daut-jfrog-gbl-p annotations: checksum/nginx-artifactory-conf: 00ce768cb522b4dc50643a5c8a10453a6e59d35fe22e5907bd93ca7fcaee0617 checksum/nginx-conf: 0b0cf6330f01b98a27696f96a05d12af71a8828799ae95af8deccf044a8da933 spec: restartPolicy: Always initContainers: