Skip to content
This repository has been archived by the owner on Feb 8, 2021. It is now read-only.

Incompatible templates for Kubernetes >= 1.16 #2

Open
Sparika opened this issue Dec 17, 2019 · 0 comments
Open

Incompatible templates for Kubernetes >= 1.16 #2

Sparika opened this issue Dec 17, 2019 · 0 comments

Comments

@Sparika
Copy link

Sparika commented Dec 17, 2019

Summary:

Since Kubernetes 1.16, some API have been deprectated as can be seen here.

DaemonSet, Deployment, StatefulSet, and ReplicaSet resources will no longer be served from extensions/v1beta1, apps/v1beta1, or apps/v1beta2 by default in v1.16. Migrate to the apps/v1 API

Deployment of Skydive on Kubernetes 1.16 using helm fails with an error

helm install skydive-helm
Error: validation failed: [unable to recognize "": no matches for kind "DaemonSet" in version "extensions/v1beta1", unable to recognize "": no matches for kind "Deployment" in version "extensions/v1beta1"]

Similar to error reported here.

Expected change
For both agent and analyzer, the api version should be changed:

apiVersion: apps/v1
kind: DaemonSet
apiVersion: apps/v1
kind: Deployment

And the following should be added to both files:

spec:
  selector:
    matchLabels:
      app: {{ template "fullname" . }}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant