Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

K8s v1.16 got error #50

@EduardoFiorentini

Description

@EduardoFiorentini

Hello!
I've got error message while trying to deploy in K8s v1.16 :
kubectl create -f cassandra-statefulset.yaml
error: unable to recognize cassandra-statefulset.yaml: no matches for kind "StatefulSet" in version "apps/v1beta1".

After trying to change to apiVersion: "apps/v1" error message also changes:
error: error validating cassandra-statefulset.yaml: error validating data: ValidationError(StatefulSet.spec): missing required field "selector" in io.k8s.api.apps.v1.StatefulSetSpec; if you choose to ignore these errors, turn validation off with --validate=false

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions