-
-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: CustomResourceDefinition is mandatory? + A tip for kops users #34
Comments
The note about kops is great, I would definitely merge that pr. CustomResourceDefinition is not mandatory. You should be able to ignore the error in the logs just fine. Backup disks then need to be annotated as described in the docs. |
PR for kops tip in README: #35 On the CRD thing: You are correct that scheduled snapshots work in spite of the error (I must have failed to wait long enough during my testing :)). However, the stack trace is kind of ominous. Here it is after starting
This looks a little scary, so I suggest suppressing the error (e.g. "No CustomResourceDefinition found, but that is ok" instead of a dozen lines of traceback). I don't have time to PR it myself, though I can make a separate issue for this problem if you like. Regardless, Google can now find this error message in this issue so hopefully future users will be less frightened of this stack trace than I was :). |
Hello,
I wanted to check my understanding on a couple things before I offer a PR.
CustomResourceDefinition is mandatory?
I have a k8s 1.8.0 cluster. Following the README I deployed k8s-snapshots (both v2.0 and dev), annotated a Persistent Volume, and hit this error:
k8s-snapshots.elsdoerfer.com
was not in the output ofcurl https://100.64.0.1:443/apis/
.I deployed the CustomResourceDefinition from the "Manual snapshot rules" section later in the README and the error went away.
Is it expected that the CRD is mandatory, at least in k8s 1.7+? If so, I'll update the docs. If not, I can provide more detail about my setup if this is a bug worth investigating.
A tip for kops users
We use kops to manage our k8s cluster. k8s-snapshots didn't work out of the box due to a permissions issue. If you agree, I'd like to add a tip about this to the README for fellow kops users:
k8s-snapshots need EBS and S3 permissions to take and save snapshots. Under the kops IAM Role scheme, only Masters have these permissions. The easiest solution is to run k8s-snapshots on Masters.
To run on a Master, we need to:
overcome a Taint -- see https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
specify that we require a Master -- see https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
To do this, add the following to the above manifest for the k8s-snapshots Deployment:
Thanks
k8s-snapshots is cool! :)
The text was updated successfully, but these errors were encountered: