Skip to content

Deis sets readinessProbe to some Apps #409

@arkkanoid

Description

@arkkanoid

Today I've installed a new fresh version of Deis (v2.3.0).
I've tested some PHP-based Dockerfiles that I ran in v2.0 and I get an error deploying the app:

Readiness probe failed: dial tcp 10.2.19.2:5000: connection refused

The application runs, but fails due to the readiness probe.
The most interesting thing is that I haven't configured any healthcheck.
Trying a simpliest Nginx app I can deploy it successfully.
The Dockerfile I use exposes to port 80 and have a CMD.

Running:

deis healthchecks -a marble-jailbird
=== marble-jailbird Healthchecks

--- Liveness
No liveness probe configured.

--- Readiness
No readiness probe configured.

The Schema that Deis generates is:

apiVersion: v1
kind: ReplicationController
metadata:
  creationTimestamp: 2016-08-17T14:11:17Z
  generation: 2
  labels:
    app: marble-jailbird
    heritage: deis
    type: cmd
    version: v3
  name: marble-jailbird-v3-cmd
  namespace: marble-jailbird
  resourceVersion: "9283922"
  selfLink: /api/v1/namespaces/marble-jailbird/replicationcontrollers/marble-jailbird-v3-cmd
  uid: 76db6cd7-6484-11e6-a1db-06b8ff01bfc7
spec:
  replicas: 1
  selector:
    app: marble-jailbird
    heritage: deis
    type: cmd
    version: v3
  template:
    metadata:
      creationTimestamp: null
      labels:
        app: marble-jailbird
        heritage: deis
        type: cmd
        version: v3
      name: marble-jailbird-v3-cmd
    spec:
      containers:
      - env:
        - name: DEIS_APP
          valueFrom:
            secretKeyRef:
              key: deis-app
              name: marble-jailbird-v3-env
        - name: PORT
          valueFrom:
            secretKeyRef:
              key: port
              name: marble-jailbird-v3-env
        - name: WORKFLOW_RELEASE
          valueFrom:
            secretKeyRef:
              key: workflow-release
              name: marble-jailbird-v3-env
        image: XXXXXX.dkr.ecr.eu-west-1.amazonaws.com/marble-jailbird:git-7a486354
        imagePullPolicy: Always
        name: marble-jailbird-cmd
        readinessProbe:
          failureThreshold: 1
          initialDelaySeconds: 5
          periodSeconds: 5
          successThreshold: 1
          tcpSocket:
            port: 5000
          timeoutSeconds: 5
        resources: {}
        terminationMessagePath: /dev/termination-log
      dnsPolicy: ClusterFirst
      imagePullSecrets:
      - name: private-registry-ecr
      restartPolicy: Always
      securityContext: {}
      terminationGracePeriodSeconds: 30
status:
  fullyLabeledReplicas: 1
  observedGeneration: 2
  replicas: 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions