Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I'm seeing liveness and readiness probe report as "http://:http/$HEALTH_CHECK_ENDPOINT" #668

Closed
Gowiem opened this issue Aug 10, 2020 · 7 comments · Fixed by #4118
Closed
Assignees
Labels
area/ui bug Something isn't working

Comments

@Gowiem
Copy link

Gowiem commented Aug 10, 2020

Describe the bug
I'm seeing liveness and readiness probes report as "http://:http/$HEALTH_CHECK_ENDPOINT". This seems incorrect according to my helm chart's configuration.

To Reproduce
Steps to reproduce the behavior:

  1. Add a liveness probe
  2. View your prod via the Lens app.
  3. The configuration looks incorrect.

Expected behavior
I would expect to see it either report just the /$HEALTH_CHECK_ENDPOINT or the full hostname / IP of the pod and then the /$HEALTH_CHECK_ENDPOINT

Screenshots
image

Environment (please complete the following information):

  • Lens Version: 3.5.2
  • OS: OSX
  • Installation method (e.g. snap or AppImage in Linux): Installation through downloading release.

Logs:
Here is my liveness and readiness probe from kc get pod $POD_NAME -o yaml

    livenessProbe:
      failureThreshold: 3
      httpGet:
        path: /health-check
        port: http
        scheme: HTTP
      initialDelaySeconds: 60
      periodSeconds: 60
      successThreshold: 1
      timeoutSeconds: 1
    readinessProbe:
      failureThreshold: 3
      httpGet:
        path: /health-check
        port: http
        scheme: HTTP
      initialDelaySeconds: 60
      periodSeconds: 60
      successThreshold: 1
      timeoutSeconds: 1

Kubeconfig:

apiVersion: v1
clusters:
- cluster:
    certificate-authority: /Users/gowiem/.minikube/ca.crt
    server: https://192.168.64.2:8443
  name: minikube
- cluster:
    certificate-authority-data: SECRET
    server: SECRET
  name: arn:aws:eks:us-east-1:$SECRET_ARN
contexts:
- context:
    cluster: minikube
    user: minikube
  name: minikube
- context:
    cluster: arn:aws:eks:us-east-1:$SECRET_ARN
    user: arn:aws:eks:us-east-1:$SECRET_ARN
  name: arn:aws:eks:us-east-1:$SECRET_ARN
current-context: arn:aws:eks:us-east-1:$SECRET_ARN
kind: Config
preferences: {}
users:
- name: minikube
  user:
    client-certificate: /Users/gowiem/.minikube/profiles/minikube/client.crt
    client-key: /Users/gowiem/.minikube/profiles/minikube/client.key
- name: arn:aws:eks:us-east-1:$SECRET_ARN
  user:
    exec:
      apiVersion: client.authentication.k8s.io/v1alpha1
      args:
      - --region
      - us-east-1
      - eks
      - get-token
      - --cluster-name
      - $CLUSTER_NAME
      command: aws
      env:
      - name: AWS_PROFILE
        value: $PROFILE_NAME
@Nokel81 Nokel81 added the bug Something isn't working label Mar 25, 2021
@Nokel81
Copy link
Collaborator

Nokel81 commented Mar 25, 2021

Is this still a problem with 4.1.4?

@Gowiem
Copy link
Author

Gowiem commented Mar 26, 2021

@Nokel81 yeah, I'm still seeing this on 4.1.4 --
image

@Nokel81
Copy link
Collaborator

Nokel81 commented Mar 26, 2021

Okay so to start port is supposed to a number, that is why you see :http. But I agree that the hostname or IP could be useful here too (if it isn't specified in the httpGet field.

@Nokel81 Nokel81 added this to the 5.0.0 milestone Mar 26, 2021
@Nokel81 Nokel81 self-assigned this Mar 26, 2021
@Nokel81
Copy link
Collaborator

Nokel81 commented Mar 26, 2021

Though shouldn't it be pod's node's IP?

@Nokel81
Copy link
Collaborator

Nokel81 commented Apr 20, 2021

I have found:

So we should indeed update this, and it seems that the IP that we should default to (if the one in the ports entry is missing) is the external IP of the container.

@Nokel81
Copy link
Collaborator

Nokel81 commented Apr 26, 2021

@Gowiem Sorry for another question. I assume you have ports field defined? If that isn't defined does Kubernetes error out or fall back to some default port?

@Gowiem
Copy link
Author

Gowiem commented Apr 27, 2021

@Nokel81 Not sure on the second question, but yes a lot of my charts look like the following:

# deployment.yml 
... 
ports:
- name: http
  containerPort: {{ .Values.env.PORT }}
  protocol: TCP
...
# service.yaml
ports:
- name: http
  port: {{ .Values.service.port }}
  targetPort: http
  protocol: TCP

@msa0311 msa0311 modified the milestones: 5.0.0, 5.0.1 Jun 14, 2021
@jakolehm jakolehm modified the milestones: 5.0.1, 5.0.3 Jul 5, 2021
@Nokel81 Nokel81 modified the milestones: 5.0.3, 5.1.0, 5.1.1, 5.1.2 Jul 12, 2021
@Nokel81 Nokel81 modified the milestones: 5.1.2, 5.1.3, 5.2.0 Jul 19, 2021
@jim-docker jim-docker modified the milestones: 5.2.0, 5.2.4, 5.2.5 Sep 21, 2021
@jakolehm jakolehm removed this from the 5.2.5 milestone Oct 1, 2021
@jakolehm jakolehm added this to the 5.2.6 milestone Oct 1, 2021
@Nokel81 Nokel81 removed this from the 5.2.6 milestone Oct 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ui bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants