openfaas / faas

OpenFaaS - Serverless Functions Made Simple
https://www.openfaas.com
MIT License
25.02k stars 1.93k forks source link

Function deployment finish but Not Ready on UI and liveness probe failed warning in pod #1569

Closed JasonPad19 closed 4 years ago

JasonPad19 commented 4 years ago

My actions before raising this issue

I have initially installed openfaas and work fine in the newly created kubernetes cluster (v 1.18). And then i try to install kuberflow v.1.1 on the same cluster. If i try to deploy an new function, I will encounter liveness probe failed in the pod, and see Not Ready on UI. However, the status of the pod and service are in running status. Also, all other previous deployed openfaas functions are still working.

Expected Behaviour

I am expecting the deployed function to be in Ready status on UI.

Current Behaviour

I will encounter liveness probe failed in the pod, and see Not Ready on UI.

Possible Solution

I wonder if it is caused by kuberflow installation. They are using istio as well. Would you please suggest how to debug and fix/workaround it ?

Steps to Reproduce (for bugs)

  1. Install OpenFaas
  2. Deploy functions, and everything works
  3. Install Kubeflow v.1.1
  4. Deploy functions, and function shows Not Ready on UI.

Context

I am trying to deploy a function to openfaas.

Your Environment

Function service log comparison. Previous deployed function is working. Newly deployed function is not working. image

If using Swarm, run the following and include the output:

curl -sLS https://raw.githubusercontent.com/moby/moby/master/contrib/check-config.sh | bash

Next steps

You may join Slack for community support.

JasonPad19 commented 4 years ago

I managed to make it work by uninstalling kubeflow.

Also, need to follow this step if istio is running on the same cluster. https://www.kubeflow.org/docs/started/k8s/kfctl-k8s-istio/

Before you start Configuring your installation with kfctl_k8s_istio.v1.1.0.yaml has an option you should consider:

Disabling istio installation - If your Kubernetes cluster has an existing Istio installation you may choose to not install Istio by removing the applications istio-crds and istio-install in the configuration file kfctl_k8s_istio.v1.1.0.yaml

alexellis commented 4 years ago

Glad you were able to solve your own issue. There are some community resources for Istio, which may be of help.

https://docs.openfaas.com/tutorials/featured/#service-mesh

alexellis commented 4 years ago

/lock