<p>I am trying to follow the <a href="https://www.kubeflow.org/docs/components/pipelines/v2/installation/quickstart/" rel="nofollow noreferrer">Kubeflow v2 quickstart</a>.</p>
<p>First, I deployed Kubeflow to a local Kubernetes cluster by</p>
<pre class="lang-bash prettyprint-override"><code>export PIPELINE_VERSION=&quot;2.0.0-alpha.4&quot;

kubectl apply -k &quot;github.com/kubeflow/pipelines/manifests/kustomize/cluster-scoped-resources?ref=$PIPELINE_VERSION&quot;
kubectl wait --for condition=established --timeout=60s crd/applications.app.k8s.io
kubectl apply -k &quot;github.com/kubeflow/pipelines/manifests/kustomize/env/dev?ref=$PIPELINE_VERSION&quot;
</code></pre>
<p>I port forwarded by</p>
<pre class="lang-bash prettyprint-override"><code>kubectl port-forward service/ml-pipeline-ui --namespace=kubeflow 38620:80
</code></pre>
<p>I can see the UI at http://localhost:38620</p>
<p><a href="https://i.stack.imgur.com/5uf0b.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5uf0b.png" alt="enter image description here" /></a></p>
<p>Next, I installed <code>kfp</code> 2.0.1. And here is my code:</p>
<pre class="lang-py prettyprint-override"><code>from kfp import client, dsl


@dsl.component
def addition_component(num1: int, num2: int) -&gt; int:
    return num1 + num2


@dsl.pipeline(name=&quot;addition-pipeline&quot;)
def my_pipeline(a: int, b: int, c: int = 10):
    add_task_1 = addition_component(num1=a, num2=b)
    add_task_2 = addition_component(num1=add_task_1.output, num2=c)


endpoint = &quot;http://localhost:38620&quot;  # &lt;- Not entirely sure if it is correct as it is missing in the quickstart document.
kfp_client = client.Client(host=endpoint)
run = kfp_client.create_run_from_pipeline_func(
    my_pipeline,
    arguments={&quot;a&quot;: 1, &quot;b&quot;: 2},
)
url = f&quot;{endpoint}/#/runs/details/{run.run_id}&quot;
print(url)
</code></pre>
<p>However, I got error</p>
<pre><code>python src/main.py

/Users/hongbo-miao/Library/Caches/pypoetry/virtualenvs/hm-kubeflow-calculate-PriecqfA-py3.11/lib/python3.11/site-packages/kfp/client/client.py:158: FutureWarning: This client only works with Kubeflow Pipeline v2.0.0-beta.2 and later versions.
  warnings.warn(
ERROR:root:Failed to get healthz info attempt 1 of 5.
Traceback (most recent call last):
  File &quot;/Users/hongbo-miao/Library/Caches/pypoetry/virtualenvs/hm-kubeflow-calculate-PriecqfA-py3.11/lib/python3.11/site-packages/kfp/client/client.py&quot;, line 435, in get_kfp_healthz
    return self._healthz_api.get_healthz()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File &quot;/Users/hongbo-miao/Library/Caches/pypoetry/virtualenvs/hm-kubeflow-calculate-PriecqfA-py3.11/lib/python3.11/site-packages/kfp_server_api/api/healthz_service_api.py&quot;, line 63, in get_healthz
    return self.get_healthz_with_http_info(**kwargs)  # noqa: E501
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File &quot;/Users/hongbo-miao/Library/Caches/pypoetry/virtualenvs/hm-kubeflow-calculate-PriecqfA-py3.11/lib/python3.11/site-packages/kfp_server_api/api/healthz_service_api.py&quot;, line 134, in get_healthz_with_http_info
    return self.api_client.call_api(
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File &quot;/Users/hongbo-miao/Library/Caches/pypoetry/virtualenvs/hm-kubeflow-calculate-PriecqfA-py3.11/lib/python3.11/site-packages/kfp_server_api/api_client.py&quot;, line 364, in call_api
    return self.__call_api(resource_path, method,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File &quot;/Users/hongbo-miao/Library/Caches/pypoetry/virtualenvs/hm-kubeflow-calculate-PriecqfA-py3.11/lib/python3.11/site-packages/kfp_server_api/api_client.py&quot;, line 188, in __call_api
    raise e
  File &quot;/Users/hongbo-miao/Library/Caches/pypoetry/virtualenvs/hm-kubeflow-calculate-PriecqfA-py3.11/lib/python3.11/site-packages/kfp_server_api/api_client.py&quot;, line 181, in __call_api
    response_data = self.request(
                    ^^^^^^^^^^^^^
  File &quot;/Users/hongbo-miao/Library/Caches/pypoetry/virtualenvs/hm-kubeflow-calculate-PriecqfA-py3.11/lib/python3.11/site-packages/kfp_server_api/api_client.py&quot;, line 389, in request
    return self.rest_client.GET(url,
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File &quot;/Users/hongbo-miao/Library/Caches/pypoetry/virtualenvs/hm-kubeflow-calculate-PriecqfA-py3.11/lib/python3.11/site-packages/kfp_server_api/rest.py&quot;, line 230, in GET
    return self.request(&quot;GET&quot;, url,
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File &quot;/Users/hongbo-miao/Library/Caches/pypoetry/virtualenvs/hm-kubeflow-calculate-PriecqfA-py3.11/lib/python3.11/site-packages/kfp_server_api/rest.py&quot;, line 224, in request
    raise ApiException(http_resp=r)
kfp_server_api.exceptions.ApiException: (404)
Reason: Not Found
HTTP response headers: HTTPHeaderDict({'X-Powered-By': 'Express', 'Content-Security-Policy': &quot;default-src 'none'&quot;, 'X-Content-Type-Options': 'nosniff', 'Content-Type': 'text/html; charset=utf-8', 'Content-Length': '159', 'Date': 'Mon, 03 Jul 2023 03:59:33 GMT', 'Connection': 'keep-alive', 'Keep-Alive': 'timeout=5'})
HTTP response body: &lt;!DOCTYPE html&gt;
&lt;html lang=&quot;en&quot;&gt;
&lt;head&gt;
&lt;meta charset=&quot;utf-8&quot;&gt;
&lt;title&gt;Error&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;pre&gt;Cannot GET /apis/v2beta1/healthz&lt;/pre&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>
<p>Inside for <code>endpoint</code>, I am using http://localhost:38620, However, I am not entirely sure if I am using correct one as it is missing in <a href="https://www.kubeflow.org/docs/components/pipelines/v2/installation/quickstart/" rel="nofollow noreferrer">quickstart document</a>.</p>
<p>I tried to access</p>
<ul>
<li>http://localhost:38620/apis/v2beta1/healthz</li>
<li>http://localhost:38620/#/apis/v2beta1/healthz</li>
</ul>
<p>and they do not exist.</p>
<p>I found a similar issue at <a href="https://github.com/kubeflow/kubeflow/issues/5989" rel="nofollow noreferrer">https://github.com/kubeflow/kubeflow/issues/5989</a> but there is not any helpful info inside.</p>
<p>Any guide would be appreciate!</p>

Hongbo Miao
<p><strong>UPDATE</strong>: I have opened a <a href="https://github.com/kubeflow/website/pull/3540" rel="nofollow noreferrer">pull request</a> to update the document. Today should be good.</p>
<hr />
<p>I had a closer look of the Python script log. It has a line:</p>
<blockquote>
<p>FutureWarning: This client only works with Kubeflow Pipeline v2.0.0-beta.2 and later versions.</p>
</blockquote>
<p>It turns out the <a href="https://www.kubeflow.org/docs/components/pipelines/v2/installation/quickstart/" rel="nofollow noreferrer">Kubeflow v2 quickstart</a> is out-of-date.</p>
<p>After I replaced <code>2.0.0-alpha.4</code> to <code>2.0.0</code> (You can find latest version at <a href="https://github.com/kubeflow/pipelines/releases?q=Version" rel="nofollow noreferrer">https://github.com/kubeflow/pipelines/releases?q=Version</a>) and redeploy by</p>
<pre class="lang-bash prettyprint-override"><code>export PIPELINE_VERSION=&quot;2.0.0&quot;

kubectl apply -k &quot;github.com/kubeflow/pipelines/manifests/kustomize/cluster-scoped-resources?ref=$PIPELINE_VERSION&quot;
kubectl wait --for condition=established --timeout=60s crd/applications.app.k8s.io
kubectl apply -k &quot;github.com/kubeflow/pipelines/manifests/kustomize/env/dev?ref=$PIPELINE_VERSION&quot;
</code></pre>
<p>Now the pipeline script succeed:</p>
<pre class="lang-py prettyprint-override"><code>python src/main.py

/Users/hongbo-miao/Library/Caches/pypoetry/virtualenvs/hm-kubeflow-calculate-PriecqfA-py3.11/lib/python3.11/site-packages/kfp/client/client.py:158: FutureWarning: This client only works with Kubeflow Pipeline v2.0.0-beta.2 and later versions.
  warnings.warn(
Experiment details: http://localhost:38620/#/experiments/details/c9d82bc3-712e-422a-804f-fcbe5d2b8acb
Run details: http://localhost:38620/#/runs/details/87398dae-6488-446b-b650-7bbc580aab56
http://localhost:38620/#/runs/details/87398dae-6488-446b-b650-7bbc580aab56
</code></pre>
<p><a href="https://i.stack.imgur.com/PflZD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PflZD.png" alt="enter image description here" /></a></p>
<p>The health endpoint http://localhost:38620/apis/v2beta1/healthz also returns</p>
<pre><code>{
  &quot;buildDate&quot;: &quot;Tue Jun 20 16:56:00 UTC 2023&quot;,
  &quot;frontendCommitHash&quot;: &quot;e03e31219387b587b700ba3e31a02df486aa364f&quot;,
  &quot;frontendTagName&quot;: &quot;2.0.0&quot;,
  &quot;apiServerReady&quot;: true,
  &quot;apiServerCommitHash&quot;: &quot;e03e31219387b587b700ba3e31a02df486aa364f&quot;,
  &quot;apiServerTagName&quot;: &quot;2.0.0&quot;,
  &quot;apiServerMultiUser&quot;: false,
  &quot;multi_user&quot;: false
}
</code></pre>
