kubeflow / website

Kubeflow's public website
Creative Commons Attribution 4.0 International
146 stars 767 forks source link

Local Deployment - Changing PIPELINE_VERSION #3443

Open Rstar1998 opened 1 year ago

Rstar1998 commented 1 year ago

If we change pipeline version to 1.8.9 than these commands don't work

export PIPELINE_VERSION=1.8.5
kubectl apply -k "github.com/kubeflow/pipelines/manifests/kustomize/cluster-scoped-resources?ref=$PIPELINE_VERSION"
kubectl wait --for condition=established --timeout=60s crd/applications.app.k8s.io
kubectl apply -k "github.com/kubeflow/pipelines/manifests/kustomize/env/platform-agnostic-pns?ref=$PIPELINE_VERSION"

https://www.kubeflow.org/docs/components/pipelines/v1/installation/localcluster-deployment/

lokesh-sreedhara commented 1 year ago

Ran into the same issue


root@lokesh1:~# export PIPELINE_VERSION=1.8.19
root@lokesh1:~# kubectl apply -k "github.com/kubeflow/pipelines/manifests/kustomize/cluster-scoped-resources?ref=$PIPELINE_VERSION"
namespace/kubeflow unchanged
customresourcedefinition.apiextensions.k8s.io/clusterworkflowtemplates.argoproj.io unchanged
customresourcedefinition.apiextensions.k8s.io/cronworkflows.argoproj.io unchanged
customresourcedefinition.apiextensions.k8s.io/scheduledworkflows.kubeflow.org unchanged
customresourcedefinition.apiextensions.k8s.io/viewers.kubeflow.org unchanged
customresourcedefinition.apiextensions.k8s.io/workfloweventbindings.argoproj.io unchanged
customresourcedefinition.apiextensions.k8s.io/workflows.argoproj.io unchanged
customresourcedefinition.apiextensions.k8s.io/workflowtemplates.argoproj.io unchanged
serviceaccount/kubeflow-pipelines-cache-deployer-sa unchanged
clusterrole.rbac.authorization.k8s.io/kubeflow-pipelines-cache-deployer-clusterrole unchanged
clusterrolebinding.rbac.authorization.k8s.io/kubeflow-pipelines-cache-deployer-clusterrolebinding unchanged
error: resource mapping not found for name: "applications.app.k8s.io" namespace: "" from "github.com/kubeflow/pipelines/manifests/kustomize/cluster-scoped-resources?ref=1.8.19": no matches for kind "CustomResourceDefinition" in version "apiextensions.k8s.io/v1beta1"
ensure CRDs are installed first
lokesh-sreedhara commented 1 year ago

These steps worked for me

git clone https://github.com/kubeflow/pipelines.git 
cd pipelines/manifests/kustomize

KFP_ENV=platform-agnostic
kubectl apply -k cluster-scoped-resources/
kubectl wait crd/applications.app.k8s.io --for condition=established --timeout=60s
kubectl apply -k "env/${KFP_ENV}/"
kubectl wait pods -l application-crd-id=kubeflow-pipelines -n kubeflow --for condition=Ready --timeout=1800s

Results:

root@lokesh1:~/workspace/pipelines/manifests/kustomize# kubectl get pods -n kubeflow
NAME                                              READY   STATUS    RESTARTS      AGE
cache-deployer-deployment-7757859768-q6nfp        1/1     Running   0             4m40s
cache-server-6ccb7898bb-xjm48                     1/1     Running   0             5m11s
metadata-envoy-deployment-67f95797d5-t6xx4        1/1     Running   0             5m11s
metadata-grpc-deployment-784b8b5fb4-rf4tq         1/1     Running   5 (19m ago)   21m
metadata-writer-5c5f8b9cd8-msls9                  1/1     Running   0             5m11s
minio-65dff76b66-kz6j6                            1/1     Running   0             20h
ml-pipeline-5ff77bd5f-d5z9g                       1/1     Running   3 (12m ago)   14m
ml-pipeline-persistenceagent-857c9c68bf-bzwmg     1/1     Running   0             5m10s
ml-pipeline-scheduledworkflow-85bfb4f85c-v667m    1/1     Running   0             5m10s
ml-pipeline-ui-89f6bfcf5-nshrf                    1/1     Running   0             5m9s
ml-pipeline-viewer-crd-d8b5bdb5b-6nhlh            1/1     Running   0             5m9s
ml-pipeline-visualizationserver-5cd7b9bdd-tzvdt   1/1     Running   0             5m9s
mysql-c999c6c8-6ddxw                              1/1     Running   0             5m7s
workflow-controller-594fd96fd5-c5j4w              1/1     Running   0             21m
root@lokesh1:~/workspace/pipelines/manifests/kustomize# 
lokesh-sreedhara commented 1 year ago

added these changes into a PR