e2fyi/kubeflow-aws

Error no matches for kind "Application" in version "app.k8s.io/v1"

isavcic opened this issue · 4 comments

When applying (excerpt below):

apiVersion: app.k8s.io/v1beta1
kind: Application
metadata:
  annotations:
    iam.amazonaws.com/role: kube2iam-role
  name: pipeline
  namespace: kubeflow

Using:

kubectl kustomize overlay/iam

did you get this error when applying? i.e. kubectl apply -f or when generating kubectl kustomize?

This is strange? But shld not affect things much, as this is the kubeflow application CRD - i.e. it is a specification for kubeflow application controller to monitor all the kubeflow sub-components.

Let me check.

ok i think i know what happened.

We split out the CRDs from the rest of the manifest because CRDs are global resources.

We want to avoid deleting the CRDs when u kubectl delete -f (which can affect ur kubeflow installation on other namespace).

So essentially, you need to install the CRDs first, before installing the manifest.

kubectl kustomize base/crds

Essentially, these are the steps u need to do ( I have updated the README )

# generate the CRDs for kubeflow pipelines (first time only)
kubectl kustomize crds > kubeflow-pipelines-crds.yaml
# deploy the crds
kubectl apply -f kubeflow-pipelines-crds.yaml
# generate the provided overlay variant
kubectl kustomize overlay/${VARIANT} > kubeflow-pipelines-aws.yaml
# deploy
kubectl apply -f kubeflow-pipelines-aws.yaml

closing issue because of lack of activity.