-
Notifications
You must be signed in to change notification settings - Fork 0
Add documentation for migrating an existing cluster to CCM #5
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
Closed
Closed
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,69 @@ | ||
| = Deploy on existing OpenShift cluster | ||
|
|
||
| This guide describes how to deploy the Exoscale cloud-controller-manager (CCM) on an existing cluster. | ||
|
|
||
| We recommend that you migrate your cluster to use https://kb.vshn.ch/oc4/how-tos/exoscale/migrate_to_instancepool.html[instancepools for the worker nodes] before deploying the CCM. | ||
|
|
||
|
|
||
| == Prerequisites | ||
| * cluster-admin access to the cluster to migrate | ||
| * `kubectl` | ||
| * Write access to the cluster's Syn tenant repository | ||
|
|
||
| == Step-by-step guide | ||
|
|
||
| . Deploy component-exoscale-cloud-controller-manager. | ||
| Add the following to your cluster's Project Syn configuration: | ||
| + | ||
| [source,yaml] | ||
| ---- | ||
| applications: | ||
| - exoscale-cloud-controller-manager | ||
| ---- | ||
|
|
||
| . Patch infrastructure config | ||
| + | ||
| IMPORTANT: This step triggers node reboots to apply the Kubelet flag `--cloud-provider=external`. | ||
| + | ||
| [source,bash] | ||
| ---- | ||
| kubectl --as cluster-admin patch infrastructure.config cluster --type=merge -p '{"spec":{"platformSpec":{"external":{"platformName":"exoscale"},"type":"External"}}}' | ||
| ---- | ||
| + | ||
| [source,bash] | ||
| ---- | ||
| kubectl --as=cluster-admin patch infrastructure.config cluster --type=merge --subresource=status \ | ||
| -p '{"status":{"platform":"External","platformStatus":{"external":{"cloudControllerManager":{"state":"External"}},"type":"External"}}}' | ||
| ---- | ||
|
|
||
| . Taint nodes with `node.cloudprovider.kubernetes.io/uninitialized=true:NoSchedule` | ||
| + | ||
| [source,bash] | ||
| ---- | ||
| kubectl --as cluster-admin taint node --all node.cloudprovider.kubernetes.io/uninitialized=true:NoSchedule | ||
| ---- | ||
|
|
||
| . Check if instance-type is applied | ||
| + | ||
| [source,bash] | ||
| ---- | ||
| kubectl get nodes -ocustom-columns='NAME:.metadata.name,INSTANCE_TYPE:.metadata.labels.node\.kubernetes\.io/instance-type' | ||
| ---- | ||
| + | ||
| [source,bash] | ||
| ---- | ||
| NAME INSTANCE_TYPE | ||
| infra-032a standard.extra-large | ||
| infra-7b8b standard.extra-large | ||
| infra-f8e1 standard.extra-large | ||
| infra-fa1a standard.extra-large | ||
| master-03b1 standard.extra-large | ||
| master-4386 standard.extra-large | ||
| master-a662 standard.extra-large | ||
| storage-11b9 cpu.extra-large | ||
| storage-2764 cpu.extra-large | ||
| storage-5d24 cpu.extra-large | ||
| worker-e6e75-drjgz standard.extra-large | ||
| worker-e6e75-ikhpr standard.extra-large | ||
| worker-e6e75-nypky standard.extra-large | ||
| ---- | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,3 @@ | ||
| * xref:index.adoc[Home] | ||
| * xref:references/parameters.adoc[Parameters] | ||
| * xref:how-tos/deploy_ocp.adoc[Install on Existing OpenShift Cluster] |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.