e2fyi / kubeflow-aws

Kustomize manifest to deploy kubeflow pipelines in AWS
Apache License 2.0
21 stars 9 forks source link

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

Closed isavcic closed 4 years ago

isavcic commented 4 years ago

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
eterna2 commented 4 years ago

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.

eterna2 commented 4 years ago

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

eterna2 commented 4 years ago

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
eterna2 commented 4 years ago

closing issue because of lack of activity.