howfree

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

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