-
Notifications
You must be signed in to change notification settings - Fork 67
Update procedure for setting up single node/multi-node cluster #1122
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
Open
q131172019
wants to merge
57
commits into
CentaurusInfra:master
Choose a base branch
from
q131172019:CarlXie_singleNodeArktosCluster
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
57 commits
Select commit
Hold shift + click to select a range
4ac6cf2
Update for setting up single node cluster
q131172019 f1d411a
Set up single node cluster without sudo permission
q131172019 b347cbb
Remove sudo from the document single-node-dev-cluster.md
q131172019 2ba00b0
Make the changes based on Sindica's comments
q131172019 1221bc4
Make the minor change in docs/setup-guide/setup-dev-env.md
q131172019 db68a77
Remove duplicate steps in the file setup-dev-env.md
q131172019 a710bad
:wq!Merge remote-tracking branch 'upstream/master' into CarlXie_singl…
q131172019 c696130
Update the document to set up multi-node Dev cluster in AWS
q131172019 e0b8173
The 2nd update the document to set up multi-node Dev cluster in AWS
q131172019 2ff9cd0
Merge remote-tracking branch 'upstream/master' into CarlXie_singleNod…
q131172019 afd22c7
Make the changes based on Sonya's feedback on PR#1122
q131172019 73f659e
Make the changes based on Sonya's feedback on PR#1122 / 2nd minor change
q131172019 4d5a8d4
Make two minor changes based on Sonya's comments on 2021-08-12
q131172019 e5ac974
Make one minor change based on Sonya's second feedback on 2021-08-12
q131172019 e5ae55a
Update the document setup-dev-env.md and fix two minor bugs in setup_…
q131172019 669dc8d
Merge branch 'CentaurusInfra:master' into CarlXie_singleNodeArktosClu…
q131172019 e859d93
Merge remote-tracking branch 'origin/master' into CarlXie_singleNodeA…
q131172019 08b7fd9
minor update
q131172019 f5eeb3b
Rename for two files
q131172019 038fa79
Minor update
q131172019 21e67f5
Rename for one file and create a new file
q131172019 7268842
Re-add the original file back
q131172019 ac5ac9c
single-node-dev-scale-up-cluster-with-Mizar.md - draft #1
q131172019 00726b8
single-node-dev-scale-up-cluster-with-Mizar.md - draft #1.1
q131172019 fdd7bfe
single-node-dev-scale-up-cluster-with-Mizar.md - draft #1.2
q131172019 12e8ddf
Update single-node-dev-scale-up-cluster-with-Mizar.md
q131172019 868155e
Update multi-node-dev-scale-up-cluster-with-Mizar.md
q131172019 30129a3
Update multi-node-dev-scale-up-cluster-with-Mizar.md #1
q131172019 00f060f
minor change: 128HB -> 128GB
q131172019 6c9138f
Update two documents
q131172019 494e743
Update two documents #1.1
q131172019 3184597
Update one document
q131172019 9b844b9
update 3 documents #1.0
q131172019 de4846e
update 3 documents #1.1
q131172019 7de5fcd
update 3 documents #1.2
q131172019 cdb8cd7
update 3 documents #1.3
q131172019 f09054c
update 3 documents #1.4
q131172019 4064b60
update 3 documents #1.5
q131172019 f18244f
update 3 documents #1.6
q131172019 a0019cd
update 3 documents #1.7
q131172019 7a3f062
update 3 documents #1.8
q131172019 eba99f5
update 3 documents #1.9
q131172019 b6f0b33
update 3 documents #1.10
q131172019 ea5978d
update 3 documents #1.11
q131172019 f200aa4
update scale-out documents #1.001
q131172019 79a7da6
update scale-out documents #1.002
q131172019 410803d
update scale-out documents #1.003
q131172019 f7706f6
update scale-out documents #1.004
q131172019 84636f5
update scale-out documents #1.005
q131172019 5c9d12f
update scale-out documents #1.006
q131172019 a3bda47
update scale-out documents #1.007
q131172019 c7d16be
update 3 documents #1.12
q131172019 ee3c1a6
update 3 documents #1.13
q131172019 b46f3f4
update 3 documents #1.14
q131172019 fb459e3
update 3 documents #1.15
q131172019 d6aacb9
update 3 documents #1.16
q131172019 e5c0420
Update document with new blog at https://msazure.club/flannel-network…
q131172019 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| # How to Setup a Dev Cluster of single node on AWS EC2 instance running Ubuntu 18.04, 16.04 and 20.04 | ||
|
|
||
| 0. Pre-requisite - setup local development environment | ||
| ``` | ||
| https://github.com/CentaurusInfra/arktos/blob/master/docs/setup-guide/setup-dev-env.md | ||
| ``` | ||
|
|
||
| 1. Run script to create a single arktos cluster | ||
|
|
||
| Note: If your Dev Cluster of single node is on AWS EC2 instance running Ubuntu 20.04, please FIRST comment out the following three lines at https://github.com/CentaurusInfra/arktos/blob/master/pkg/kubelet/cm/container_manager_linux.go#L804,#L806 before running the command './hack/arktos-up.sh'. | ||
|
|
||
| if cpu != memory { | ||
| return "", fmt.Errorf("cpu and memory cgroup hierarchy not unified. cpu: %s, memory: %s", cpu, memory) | ||
| } | ||
|
|
||
| ```bash | ||
| $ ./hack/arktos-up.sh | ||
| ``` | ||
|
|
||
| Note: If your Dev Cluster of single node is on AWS EC2 instance running Ubuntu 18.04, after you run the command './hack/arktos-up.sh', you may experience the following error. Just simply remove the symbolic link and re-run the command './hack/arktos-up.sh'. | ||
|
|
||
| ln: failed to create symbolic link '/home/ubuntu/go/src/arktos/_output/bin': File exists | ||
|
|
||
| ```bash | ||
| $ rm -i /home/ubuntu/go/src/arktos/_output/bin | ||
| $ ./hack/arktos-up.sh | ||
| ``` | ||
|
|
||
|
|
||
| 2. Open another terminal to use arktos cluster | ||
| ```bash | ||
| $ export KUBECONFIG=/var/run/kubernetes/admin.kubeconfig | ||
| Or | ||
|
q131172019 marked this conversation as resolved.
Outdated
|
||
| $ export KUBECONFIG=/var/run/kubernetes/adminN(N=0,1,...).kubeconfig | ||
|
|
||
| $ cluster/kubectl.sh | ||
|
|
||
| Alternatively, you can write to the default kubeconfig: | ||
|
|
||
| $ export KUBERNETES_PROVIDER=local | ||
|
|
||
| $ sudo cluster/kubectl.sh config set-cluster local --server=https://ip-172-31-3-192:6443 --certificate-authority=/var/run/kubernetes/server-ca.crt | ||
| $ sudo cluster/kubectl.sh config set-credentials myself --client-key=/var/run/kubernetes/client-admin.key --client-certificate=/var/run/kubernetes/client-admin.crt | ||
| $ sudo cluster/kubectl.sh config set-context local --cluster=local --user=myself | ||
| $ sudo cluster/kubectl.sh config use-context local | ||
| $ sudo cluster/kubectl.sh config get-contexts | ||
| $ cluster/kubectl.sh | ||
| $ cluster/kubectl.sh get nodes | ||
| $ cluster/kubectl.sh get all --all-namespaces | ||
| ``` | ||
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
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.