<p>I'm currently trying to add health checks into my API through my helm chart. However, when I run this service under kubernetes it seems that my pod is ready but I have 0/1 Running and when I try to hit the URL for the service is not returning anything.</p>
<p>This is how my deployment looks:</p>
<pre><code>
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ include &quot;test.fullname&quot; . }}
  labels:
    app.kubernetes.io/name: {{ include &quot;test.name&quot; . }}
    helm.sh/chart: {{ include &quot;test.chart&quot; . }}
    app.kubernetes.io/instance: {{ .Release.Name }}
    app.kubernetes.io/managed-by: {{ .Release.Service }}
spec:
  replicas: {{ .Values.replicaCount }}
  selector:
    matchLabels:
      app.kubernetes.io/name: {{ include &quot;test.name&quot; . }}
      app.kubernetes.io/instance: {{ .Release.Name }}
  template:
    metadata:
      labels:
        app.kubernetes.io/name: {{ include &quot;test.name&quot; . }}
        app.kubernetes.io/instance: {{ .Release.Name }}
    spec:
      containers:
        - name: {{ .Chart.Name }}
          image: &quot;{{ .Values.image.repository }}:{{ .Values.image.tag }}&quot;
          imagePullPolicy: {{ .Values.image.pullPolicy }}

          readinessProbe:
                httpGet:
                  path: /health
                  port: 8001
                initialDelaySeconds: 60
                periodSeconds: 60

          livenessProbe:
              httpGet:
                path: /health
                port: 8001
              initialDelaySeconds: 60
              periodSeconds: 60
  
          startupProbe:
            httpGet:
              path: /health
              port: 8001
            failureThreshold: 60
            periodSeconds: 60

          env:
              {{- range .Values.variables }}
              - name: {{ .name }}
                value: {{ .value }}
              {{- end }} 
          ports:
            - name: http
              containerPort: 80001
              protocol: TCP

</code></pre>
<p>If I delete the health checks, I will have 1/1 Running. Does anyone knows if I have to add something else to the health checks?</p>

Hvaandres
<p>Your healthcheck specification looks syntactically fine.
But your port number seems wrong: The maximum possible TCP port is 65535, you specify 80001. Probably a zero too many?</p>
<p>Verify which port your application is listening to in the container and use that port.</p>
<p>You can verify it by running the app as local docker container and call the health check with curl.</p>
