V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
howfree
V2EX  ›  Kubernetes

k8s 非级联删除 statefulset,返回无效参数,问问大佬知道啥原因吗?

  •  
  •   howfree · 2023-02-06 14:53:13 +08:00 · 836 次点击
    这是一个创建于 416 天前的主题,其中的信息可能已经有所发展或是发生改变。
    4 条回复    2023-02-07 10:34:28 +08:00
    runzhliu
        1
    runzhliu  
       2023-02-06 16:20:39 +08:00
    kubectl delete --help 先看一下手册,看看是不是因为 kubectl 的版本跟文档示例的不一样导致的
    konakona
        2
    konakona  
       2023-02-06 16:34:10 +08:00
    Options:
    --cascade='background': Must be "background", "orphan", or "foreground". Selects the deletion cascading strategy
    for the dependents (e.g. Pods created by a ReplicationController). Defaults to background.

    kubectl 更新一下
    aapeli
        3
    aapeli  
       2023-02-06 17:06:40 +08:00
    kubectl 版本低了
    howfree
        4
    howfree  
    OP
       2023-02-07 10:34:28 +08:00
    @runzhliu
    @konakona
    @aapeli 确实版本低了,感谢各位,可以升版本,也可以--cascade=false
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5435 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 06:03 · PVG 14:03 · LAX 23:03 · JFK 02:03
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.