If using Intellij, make sure to enable annotation processing.
You must have kubectl installed via the gcloud tool - using an older or newer version of kubectl than is expected by the kubernetes java API will cause confusing errors: https://kubernetes.io/docs/tasks/tools/install-kubectl/#download-as-part-of-the-google-cloud-sdk