Skip to content

Can't delete statefulsetsย #59867

Closed
Closed
@carlosperezepfl

Description

Is this a BUG REPORT or FEATURE REQUEST?:

Uncomment only one, leave it on its own line:

/kind bug

/kind feature

What happened:
Can't delete a statefulsets and I get an error
error: error when stopping "workers.yml": no kind "GetOptions" is registered for version "apps/v1"

$ kubectl auth can-i get  statefulsets
yes
$ kubectl auth can-i create  statefulsets
yes
$ kubectl auth can-i delete  statefulsets
yes

What you expected to happen:
statefulsets will be delete

How to reproduce it (as minimally and precisely as possible):
Create a statefulsets and try to delete it

apiVersion: apps/v1
kind: StatefulSet
metadata:
  name: worker
spec:
  serviceName: "experience1"
  replicas: 4
  selector:
    matchLabels:
      app: experience1
  template:
    metadata:
      labels:
        app: experience1
    spec:
      containers:
      - name: ssh
        image: ..... 

Anything else we need to know?:
It works with a "cluster-admin" role

Environment:

  • Kubernetes version (use kubectl version):
    Client Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.6", GitCommit:"4bc5e7f9a6c25dc4c03d4d656f2cefd21540e28c", GitTreeState:"clean", BuildDate:"2017-09-14T06:55:55Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"darwin/amd64"}
    Server Version: version.Info{Major:"1", Minor:"9", GitVersion:"v1.9.2+coreos.0", GitCommit:"b427929b2982726eeb64e985bc1ebb41aaa5e095", GitTreeState:"clean", BuildDate:"2018-01-18T22:56:14Z", GoVersion:"go1.9.2", Compiler:"gc", Platform:"linux/amd64"}

  • Cloud provider or hardware configuration:
    Bare metal

  • OS (e.g. from /etc/os-release):
    NAME="Ubuntu"
    VERSION="16.04.3 LTS (Xenial Xerus)"
    ID=ubuntu
    ID_LIKE=debian
    PRETTY_NAME="Ubuntu 16.04.3 LTS"
    VERSION_ID="16.04"
    HOME_URL="http://www.ubuntu.com/"
    SUPPORT_URL="http://help.ubuntu.com/"
    BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
    VERSION_CODENAME=xenial
    UBUNTU_CODENAME=xenial

  • Kernel (e.g. uname -a):
    Linux 4.13.0-26-generic Task -> Pod Part #3ย #29~16.04.2-Ubuntu SMP Tue Jan 9 22:00:44 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

  • Install tools:
    GPUs Daemonsets

  • Others:

Metadata

Assignees

No one assigned

    Labels

    area/stateful-appskind/bugCategorizes issue or PR as related to a bug.lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.sig/api-machineryCategorizes an issue or PR as relevant to SIG API Machinery.sig/appsCategorizes an issue or PR as relevant to SIG Apps.sig/cliCategorizes an issue or PR as relevant to SIG CLI.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions