Hi,
I tried to create a nodeport service with --dry-run=client option as given in kuberneted doc:
https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#-em-service-nodeport-em-
but while using it getting error that client is any invalid option.
Can you please help me in understanding if kubernetes documentation is not upto date ?
What version of Kubernetes are you using? Older versions just use --dry-run, so maybe try that
tgp
#3
@manish250 , It depends on the version of kubernetes you are using. Some commands has been modified in the recent version.
It was in game of pod.There it was failing.
Hello, @manish250
Older version of k8s won’t support client. So try only --dry-run flag. That document is based on the v1.22 k8s version.