-
Notifications
You must be signed in to change notification settings - Fork 46
Add workarounds to remote quickstart #785
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -15,7 +15,58 @@ Note that if you have already done one of the other quickstarts, such as our AWS | |||||
|
|
||||||
| Before proceeding, make sure your management cluster meets the following requirements: | ||||||
|
|
||||||
| 1. A [default storage class](https://kubernetes.io/docs/tasks/administer-cluster/change-default-storage-class/) is configured on the management cluster to support Persistent Volumes. | ||||||
| 1. Increase filesystem limits by adding the following to `/etc/sysctl.conf`: | ||||||
|
|
||||||
| ```bash | ||||||
| fs.inotify.max_user_instances=8192 | ||||||
| fs.inotify.max_user_watches=524288 | ||||||
| ``` | ||||||
|
|
||||||
| Then set `systemd` limits: | ||||||
|
|
||||||
| ```bash | ||||||
| sudo tee -a /etc/systemd/system.conf <<EOF | ||||||
| DefaultLimitNOFILE=1048576 | ||||||
| EOF | ||||||
|
|
||||||
| sudo tee -a /etc/systemd/user.conf <<EOF | ||||||
| DefaultLimitNOFILE=1048576 | ||||||
| EOF | ||||||
| ``` | ||||||
|
|
||||||
| Next set the OS limits: | ||||||
|
|
||||||
| ```bash | ||||||
| sudo tee -a /etc/security/limits.conf <<EOF | ||||||
| * soft nofile 1048576 | ||||||
| * hard nofile 1048576 | ||||||
| EOF | ||||||
| ``` | ||||||
|
|
||||||
| Finally, apply and reboot: | ||||||
|
|
||||||
| ```bash | ||||||
| sudo systemctl daemon-reexec | ||||||
| sudo systemctl daemon-reload | ||||||
| sudo reboot | ||||||
| ``` | ||||||
|
|
||||||
| 1. A [default storage class](https://kubernetes.io/docs/tasks/administer-cluster/change-default-storage-class/) is configured on the management cluster to support Persistent Volumes. For example: | ||||||
|
|
||||||
| ```bash | ||||||
| helm repo add openebs https://openebs.github.io/openebs | ||||||
| helm repo update | ||||||
|
|
||||||
| helm install openebs openebs/openebs \ | ||||||
| --namespace openebs \ | ||||||
| --create-namespace | ||||||
|
|
||||||
| kubectl patch storageclass openebs-hostpath \ | ||||||
|
Comment on lines
+56
to
+64
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I’ve tested the Suggestion: make this step more flexible and less prescriptive. For example: A Kubernetes storage solution should be deployed on the management cluster, and a default StorageClass should be configured to support PersistentVolumes. One possible option is OpenEBS (see https://openebs.io/docs/quickstart-guide/installation for a quickstart guide). To set a StorageClass as the default, run: |
||||||
| -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}' | ||||||
| ``` | ||||||
|
|
||||||
| 1. Make sure the key you will use to log in as root exists on the child machines. | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit:
Suggested change
|
||||||
|
|
||||||
| 2. If the API server will be exposed as a `LoadBalancer`, ensure the appropriate cloud provider is installed on the management cluster. | ||||||
|
|
||||||
| ## Create a Secret object containing the private SSH key to access remote machines | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think for now it would be better to document increasing filesystem limits as a known issue with a recommended workaround on a separate page, rather than including it as a prerequisite.