howfree

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

  •  
  •   howfree · Feb 6, 2023 · 1899 views
    This topic created in 1370 days ago, the information mentioned may be changed or developed.
    4 replies  •  2023-02-07 10:34:28 +08:00
    runzhliu
    runzhliu
    Feb 6, 2023
    1
    kubectl delete --help 先看一下手册,看看是不是因为 kubectl 的版本跟文档示例的不一样导致的
    konakona
    konakona
    Feb 6, 2023
    2
    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
    aapeli
    Feb 6, 2023
    3
    kubectl 版本低了
    howfree
    howfree
    OP
    Feb 7, 2023
    4
    @runzhliu
    @konakona
    @aapeli 确实版本低了,感谢各位,可以升版本,也可以--cascade=false
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   819 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 18:26 · PVG 02:26 · LAX 10:26 · JFK 13:26
    ♥ Do have faith in what you're doing.