Can not add ephemeralContainers according to kubectl patch

Asking for help? Comment out what you need so we can get more information to help you!

Cluster information:

root@k8s-master01:~# kubectl patch deployment nginx -n default --type=‘json’ -p=‘[{“op”: “add”, “path”: “/spec/template/spec/ephemeralContainers/-”, “value”: {“name”: “debug-container”, “image”: “busybox”, “command”: [“sh”, “-c”, “echo Hello from ephemeral container; sleep 3600”], “stdin”: true, “tty”: true}}]’
The request is invalid: the server rejected our request due to an error in our request
Kubernetes version:
Cloud being used: (put bare-metal if not on a public cloud)
Installation method:
Host OS:
CNI and version:
CRI and version:

You can format your yaml by highlighting it and pressing Ctrl-Shift-C, it will make your output easier to read.