Giter VIP home page Giter VIP logo

success_taste's Introduction

Recently tested code: success_taste

Written by: Ram Nath (gurubamal)


NOTE:

My code (given here), currently (when I checked) functions flawlessly, ensuring the installation of the most up-to-date revisions of all components. However, it is crucial to recognize that software versions may undergo significant advancements in both code structure and installation procedures over time. It works currently, but future support depends on my availability to fix any issues.

NOTE: The following is intended for hands-on learning and practicals. In production environments, follow security practices in scripts and implementations, which is not applicable to these practicals.


Pre-requisites:

  • Basic Linux skills are expected.
  • On your hardware (laptop, desktop, server), ensure Secure Boot is disabled in the BIOS and virtualization is enabled.
  • Vagrant, VirtualBox and Git should be pre-installed. (Restart your device once after installing VirtualBox.)
  • Ensure your device doesn't go to sleep when idle (while scripts are running). Change power and battery settings as applicable.

Notes

  • Most commands should be run with success_taste/cicd_ready_envt/ as the present working directory.
  • For Windows Hosts make sure you validate VBoxManage.exe PATH and if needed modify Vagrantfile to right Path like this : ""C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" (as per your Virtualbox installation PATH in your windows system)
  • Please note that sometimes you need to restart VirtualBox VMs because the latest modeled laptops, systems, and OS features may restrict and block them if they detect no activity in it.
  • The setup downloads packages from the internet.
  • The Linux admin user with sudo permissions will be vagrant (password: vagrant).
  • Kubernetes VM IPs:
    • Master node: 192.168.56.4
    • Compute node1: 192.168.56.5
    • Compute node2: 192.168.56.6
  • Commands need to be run only once in the same environment.
  • Setup may take 30-60 minutes to complete, depending on your internet speed.

Contact

For any queries, reach out to me at: [email protected]


Kubernetes Installation Instructions

  1. Navigate to the success_taste/cicd_ready_envt/ directory and ensure all scripts are executable: ``` chmod +x *.sh ```
  2. Run the setup (in case you are using MAC or Linux rename Vagrantfile_MacOS_linux to Vagrantfile: ``` vagrant up ```

NOTE: If you find your setup (vagrant up command) stuck in the middle on any of the nodes, you can log in to the node and complete the setup by running these scripts manually as well.

  /vagrant/scripts/01_set.sh
  sudo python3 /vagrant/scripts/02_set.py
  sudo python3 /vagrant/scripts/03_set.py
  sudo python3 /vagrant/scripts/04_set.py
  sudo python3 /vagrant/scripts/05_set.py
  /vagrant/scripts/07_set.sh
  /vagrant/scripts/08_set.sh
  /vagrant/scripts/09_set.sh
  /vagrant/scripts/compute_add.sh

Ensure you have restarted your machine/laptop before "vagrant up" command. If your setup was incomplete due to SSH connectivity or connection issues, you can reset/restart the Virtual box VMs (as per previous logs from vagrant up command) on the VirtualBox interface. After waiting for 2 minutes, run "vagrant up" again. you can alsways start fresh using "vagrant destroy -f" first and "vagrant up" command second.

Restart your new VMs (all nodes) after this setup is complete.

K8s Cluster + Jenkins + Ansible

  • Access the master node at 192.168.56.4 using the vagrant or root user.
  • Jenkins server is available at 192.168.56.4:8080; the password can be found in the specified file at this URL.
  • "Vagrant up" command will not setup Ansible for you. To complete the Ansible setup and start using it for practice, run following command (on node4 -- 192.168.56.4): ``` sudo python3 /vagrant/scripts/06_set.py ``` Run it more than one time if you see issues.

You can use the code from https://github.com/gurubamal/project_work-Industry-Grade-Project-2/tree/master, where I have created a pipeline test on this setup for reference.

Ensure all VMs are up and runnig (re-run if needed).

NOTE (for re-setup): Ensure you have given full control to your users on the success_taste directory as the Vagrant script will create a second disk for each VM in it. Also, run VirtualBox as an administrator to see current VMs, as you are running PowerShell (and then Vagrant commands) as an Administrator. To clean up a previously run Vagrant setup, delete VMs (either via vagrant up or manually). If you delete VMs manually, delete VDI files from the directory where you ran vagrant up and also delete the .vagrant folder from the same directory. Additionally, check C:\Users\<Your User Name>\VirtualBox VMs for any folders that should be deleted as VMs are created there by default. In case you encounter the issue "VBOX_E_FILE_ERROR" or an error related to VDI, comment out lines 25-30 in your Vagrantfile to disable additional disk creation.

Vagrant Cleanup

To clean any previously implemented setup, use the command: ``` vagrant destroy -f ``` Ensure you are in the success_taste/cicd_ready_envt/ directory where the Vagrantfile is located when running Vagrant commands.

success_taste's People

Contributors

guru8amal avatar gurubamal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.