https://github.com/apachecn-archive/k8slocal
Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (7.1%) to scientific vocabulary
Repository
Basic Info
- Host: GitHub
- Owner: apachecn-archive
- Language: Shell
- Default Branch: master
- Size: 24.4 KB
Statistics
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
k8slocal setup
Automated local k8s setup
Before you start make sure you install below components I am a Mac user ;)
- Oracle virtualbox latest version https://download.virtualbox.org/virtualbox/6.0.4/VirtualBox-6.0.4-128413-OSX.dmg
- Vagrant Latest version https://releases.hashicorp.com/vagrant/2.2.4/vagrant2.2.4x86_64.dmg
- Install ansible using command
pip install ansible- if you are strugglng to findout pip in windows just have look at here: https://stackoverflow.com/questions/29817447/how-to-run-pip-commands-from-cmd
Default Settings
So I am using subnet as 192.168.33.0/24
and MASTER_IP: 192.168.33.100 and NODE_IPS are 100+1 and so on i.e. 192.168.33.101, 192.168.33.102 etc..
Run Vagrant Boom.........!!!
vagrant up
Login to VM boxes this is just for your info
vagrant ssh k8s.master.com and vagrant ssh k8s.node-1.com , vagrant ssh k8s.node-2.com
now time to see get nodes by loggining as below
bharathumarsAir:k8slocal bharathkumardasararaju$ vagrant ssh k8s.master.com
Last login: Wed Mar 20 14:25:16 2019 from 10.0.2.2
-bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory
[vagrant@k8s ~]$ kubectl get nodes -o wide
NAME STATUS ROLES AGE VERSION INTERNAL-IP EXTERNAL-IP OS-IMAGE KERNEL-VERSION CONTAINER-RUNTIME
k8s.master.com Ready master 43m v1.13.4 10.0.2.15 <none> CentOS Linux 7 (Core) 3.10.0-957.5.1.el7.x86_64 docker://18.9.3
k8s.node-1.com Ready <none> 30m v1.13.4 10.0.2.15 <none> CentOS Linux 7 (Core) 3.10.0-957.5.1.el7.x86_64 docker://18.9.3
k8s.node-2.com Ready <none> 15m v1.13.4 10.0.2.15 <none> CentOS Linux 7 (Core) 3.10.0-957.5.1.el7.x86_64 docker://18.9.3
[vagrant@k8s ~]$
Owner
- Name: ApacheCN 归档
- Login: apachecn-archive
- Kind: organization
- Email: wizard.z@qq.com
- Repositories: 180
- Profile: https://github.com/apachecn-archive
防止重要项目丢失而设立的归档