kubectl run is deprecated - looking for alternative

后端 未结 7 568
长情又很酷
长情又很酷 2020-12-23 13:48

I\'m using kubectl run with environment parameters to create temporary docker containers for me (e.g. some forwarding for debugging purposes). Since several wee

7条回答
  •  南方客
    南方客 (楼主)
    2020-12-23 14:21

    you can use:

    kubectl run --generator=run-pod/v1 --image=busybox busybox --dry-run --env=foo=bar
    

    Which isn't being deprecated.

提交回复
热议问题