Monday, November 20, 2017

Install Kubernetes Cluster on Microsoft Azure




If you've been following the industry in the past two years then odds are you've seen use of containers. Container technology is like docker have truly changed the game by standardizing application development and production infrastructure I experienced this firsthand. Docker changed the game for me and my team by allowing us to build ship and run our applications in any language we wanted. This worked out fantastically for us until it's time to go to production there were all sorts of great tooling and development but really nothing available to run our applications in production. We decided to roll our own infrastructure in deployment tooling naturally this took us months and those are hard in difficult months half a year later. We had something that worked it wasn't fancy, but it got the job done. So, it's almost three years ago and let me tell you things have changed a lot since then. Now we have mature tools to work with containers all the way from development up into production. We have tools like kubernetes docker swarm these orchestration tools provide engineers for the toolbox to automate deploying scaling and operating containerized applications in production this course. Is all about my personal favorite kubernetes this course will teach you to deploy containerized applications. Using kubernetes will cover the features required by most common applications, i'll also equip you for the real world by covering the kubernetes ecosystem and preparing you for production deploying applications.


First you have to deploy Two virtual machines on Azure. I have  deployed "Ubuntu Server 16.04 LTS VM" as my teasing nodes.


Hear you have to select one node as master node .In my  scenario i will select "Kubernetes"
 as my master node.

Installing dependencies


The first thing you must do is install the necessary dependencies. This will be done on all machines that will join the Kubernetes cluster. The first piece to be install is apt-transport-https (a package that allows using https as well as http in apt repository sources). This can be installed with the following command:
sudo apt-get update && apt-get install -y apt-transport-https
Our next dependency is Docker. Our Kubernetes installation will depend upon this, so install it with:

sudo apt install docker.io

Then start the service by with:
sudo systemctl start docker

Installing Kubernetes

To install the  you need to add following repository by creating the file /etc/apt/sources.list.d/kubernetes.list and enter the following content:
deb http://apt.kubernetes.io/ kubernetes-xenial main 
Save and close that file. Install Kubernetes with the following commands:
apt-get update
apt-get install -y kubelet kubeadm kubectl kubernetes-cni

Initialize your master

With everything installed, go to the machine that will serve as the Kubernetes master and issue the command:
sudo kubeadm init


Before you join a node, you need to issue the following commands (as a normal  user):
mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config

Joining a node to yore Cluster

With everything in place, you are ready to join the node to the master. To do this, go to the node's terminal and issue the command:In this scenario you have to log on to the  Kubernetes1 node to run the following command :

kubeadm join --token <cccccccccccccccc23c> 10.1.2.4:6443 --discovery-token-ca-cert-hash sha<256:>
Which will display on the end of above command :sudo kubeadm init

If above process success you will be able to run following command to check other connected nodes :
kubectl get nodes

To see the pod network you have run following command :
kubectl get services --all-namespaces


 watch kubectl get pods --all-namespaces



Your Kubernetes cluster is ready

Now have a basic Kubernetes cluster, consisting of a master and a single node. Of course you can scale your cluster by installing and adding more nodes. With these instructions, that should now be easy..

Next tutorial Deploying service on this cluster 


Saturday, November 18, 2017

Containers on Windows 2016 What you Can do??






IT delivers thousands of applications to meet the needs of your business many have different requirements. They also use different languages databases and tools to deploy configure manage and maintain this complexity tasks.People expertise and the right systems infrastructure and architecture this translates to time and money. Today there's a better way to package applications and their necessary components with Containers, Containers help organizations become more consistent and agile they abstract the underlying host operating system as a result applications can be packaged
with all of their dependencies. So your developers can choose the environments and tools that best suit their projects and operations can deliver applications anywhere in consistent way. It's easy to see the benefits when you deploy your first container based app.

In this tutorial we will see how to install container on On sever 2016 and run some services on top of it


Run this Command on Power Shell
Install-Module -Name DockerMsftProvider -Repository PSGallery -Force


Then reassert computer by running this command " Restart-Computer -Force"

Ensure your Windows Server system is up-to-date by running:" sconfig"



This shows a text-based configuration menu, where you can choose option 6 to Download and Install Updates:


Then run following command install the container in the dsidred node 





After you have done success full instantiation of Docker and Containers  you will be able to run following commands:docker version



If the above step successful which means that you have successfully instaled the docker

Then pull the image of the server core in order to run it :"docker pull microsoft/windowsservercore"



Then run following command to show the downloaded images : docker images



Then run the image which you just downloaded :docker run -it microsoft/windowsservercore powershell

you will receive following screen,I will run ipconfig command to display the ip address of the container (microsoft/windowsservercore) we have just installed



With this you have successfully deploy server core on docker.




Monday, November 13, 2017

How to install Laravel 5.4 on Ubuntu 16.04.3 LTS



First yo have to install all dependency to host website E.g :PHP, MySql Like Etc...

Then   Logon to your server  with sufficient privileges



Next Run following command:

curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer

Then yo will receive following


 Next Run folloiwng code ,Alternatively, you may also install Laravel by issuing the Composer create-project command in your terminal:

composer create-project --prefer-dist laravel/laravel project-name



Finally you required to receive following success install message



Restart the terminal.

Friday, November 10, 2017

How to Install the Microsoft Project Honolulu


Microsoft Project Honolulu



Microsoft Project Honolulu is the future of remote server management designed to modernize and simplify the IT administrator experience today if I want to perform a management task on amachine there are almost twenty different tools I'll need to open on a single machine now it is consolidated all of these tools into a single intuitive remote server management experience. Microsoft Project Honolulu think of Honolulu as the evolution of the traditional toolbox management tools like
MMC it's great for administrators that need a lightweight management solution for smaller scale deployments or ad hoc management for large scale deployments.Honolulu complements existing tools like system center or a MS operations management suite by providing granular
server management capabilities where RDP might have been used before.



Sunday, November 5, 2017

How Easy To Install MySQL Server on Docker ?


First Open the Kitematic as i explain early on this blog.

Please Use your docker user name and password to login

Then you landed to the following screen on this search and find the Mysql


Then you will come to the following screen

Now click on the create

Now you will see the following


After it get downloaded  you will come to this screen


Hear you have to set the password for the root to continue the installation,Do the following step as mention bellow.

Go to settings first and add the password as new field given bellow


Then click on the save to begin the installation.


After complete this installation you are ready deploy new Mysql DB on docker at first time.


Now you can use your SQL knowledge to run your applications..

Thanks :) for any thing please do let me know....

Thursday, November 2, 2017

OPTIMIZE WINDOWS 10 Creators Update for GAMERS & Power Users


In this Post I'm running through some steps to Optimize your windows 10 PC for games and heavy work loads ..

Go to windows update and click on the Advanced option  now you will receive this screen click on the Delivery optimization

Change the config as Highlighted 


Step 02 Go to windows Defender (Settings>Update and Security >Windows Defender) 

Click on the highlighted 
Turn off windows antivirus protection 
Step 03: Go to Privacy  on the settings menu 

Change the Privacy  setting as follows 

Please  make the changes as follows 



Turn off App Diagnostics 


Turn off Unnecessary Background apps 





Step 04: Go to Ease of Access menu   on the settings menu and go to the other options do the changes as highlighted 



Step 05: Go to Gaming menu   on the settings menu                                                                                    

Do the changes as follows 


Step 06: Go to Apps and Features on the settings menu and remove all unnecessary Apps


And do the following changes on storage locations 



        
Step 07: Go to System  on the Settings menu and go tom the Notification And Access 
Do the following changes 

Do the following change son Multitasking \Shared experience 


Step 08: Go to System by typing "System" in the search box go to the "Advance system settings " and follow following steps 

        

Step 09: Go to Services by typing "Services " in the search box and disable the following services as explained bellow 



Finally Now You are Good To GOO Please Share me you're comets..Thanks.