[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Pod not passing deployment tests



Hi François,

can you deploy the app if you remove the probes?
Also it's really strange that you are specifying a Rolling strategy but in the logs it seems that Recreate is running.
Do you have any other DCs in your template?

On Wed, Jan 6, 2016 at 11:11 AM, François VILLAIN <f villain linkbynet com> wrote:

Hi,


I'm having trouble deploying a pod running a php-fpm daemon (on port 9000).
I created a DeploymentConfig in my template for that:


  - kind: DeploymentConfig
    apiVersion: v1
    metadata:
      name: "phpfpm-${SERVICE_NAME}"
      annotations:
        description: How to deploy the PHP App
    spec:
      strategy:
        type: Rolling
      replicas: 1
      selector:
        name: "phpfpm-${SERVICE_NAME}"
      template:
        metadata:
          name: "phpfpm-${SERVICE_NAME}"
          labels:
            name: "phpfpm-${SERVICE_NAME}"
        spec:
          volumes: []
          containers:
            - name: "phpfpm-${SERVICE_NAME}"
              imagePullPolicy: 'Always'
              image: "test/sample-phpinfo:latest"
              ports:
                - containerPort: 9000
              env: []
              readinessProbe:
                timeoutSeconds: 1
                initialDelaySeconds: 5
                tcpSocket:
                  port: 9000
              livenessProbe:
                timeoutSeconds: 1
                initialDelaySeconds: 5
                tcpSocket:
                  port: 9000


And here is what i get in the deployment step:

1 I0104 14:57:09.139422       1 deployer.go:196] Deploying test/phpfpm-app-1 for the first time (replicas: 1)
2 I0104 14:57:09.143539       1 recreate.go:105] Scaling test/phpfpm-app-1 to 1 before performing acceptance check
3 I0104 14:57:11.194413       1 recreate.go:110] Performing acceptance check of test/phpfpm-app-1
4 I0104 14:57:11.195425       1 lifecycle.go:379] Waiting 600 seconds for pods owned by deployment "test/phpfpm-app-1" to become ready (checking every 1 seconds; 0 pods previously accepted)
5 F0104 15:07:11.195704       1 deployer.go:65] update acceptor rejected test/phpfpm-app-1: pods for deployment "test/phpfpm-app-1" took longer than 600 seconds to become ready

Ca someone please tell me what's wrong ?


I got a same pod with a nginx instance perfectly working btw, so i guess something is bad but i can't figure ou what

 exactly...

---------------------
François Villain
DevOps - AAIO


_______________________________________________
users mailing list
users lists openshift redhat com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]