I can’t use --serviceaccount option in kubectl run command to create a pod from an image in kubectl 1.25.4 version however it is working in 1.22.13.
Do we have any workaround to use serviceaccount while creating a pod through kubectl run command?
kubectl run my-deployment-pod-5048 --image=sdk:1.0.1 -n my-namespace --serviceaccount deployer --requests=‘cpu=200m,memory=256Mi,ephemeral-storage=100Mi’ --limits=‘cpu=200m,memory=256Mi,ephemeral-storage=100Mi’ – sleep 3600"