I am trying to deploy a docker image through Jenkins.
kubectl --namespace=dev apply -f k8s/dev/
I receive this error message.
dev apply -f k8s/services/ error: unable to recognize "k8s/services/config-server.yaml": no matches for kind "Service" in version "v1"
In your yaml file look like there is an issue in service version.
check for the service compatibility with your kubernetes version.also try applying the command the kubectl apply -f <filename> -n <namespacename>
you can also try : kubectl apply -f <filename> -n <namespacename> --validate=false