Showing posts from January, 2019

Install Grafana Kubernetes with Storage - Linux Guru

How to install grafana on Kubernetes google cloud. Grafana is an open source visualization tool, Grafana allows you to query, visualize, alert on and understand your metrics no matter where they are stored. Create, explore, and share dashboards with your team. Here we will deploy grafana on Kubernetes google cloud platform using helm. Prerequisite :  1. Make sure you have created kubernetes cluster ready. 2. Connect kubernetes cluster using gcloud. 3. Make sure you have install and configure helm, you can install it by clicking here. 4. Create kubernetes cluster role for helm. $ kubectl create clusterrolebinding tiller-cluster-admin --clusterrole=cluster-admin --serviceaccount=kube-system:default Grafana Installation on kubernetes using helm. 1. Search the stable grafana package from helm chart. $ helm search grafana 2. Download stable grafana package from helm chart. $ helm fetch --untar stable/grafana you can notice that grafana folder will be there in your ser

Application-specific password required Google Error - Linux Guru

Have you ever received this error while using gmail smtp setting to send from your app? ERROR  : t=2019-01-31T10:58:08+0000 lvl=eror msg="Failed to send alert notification email" error="534 5.7.9 Application-specific password required. Learn more at\n5.7.9 r12sm5483812wrq.3 - gsmtp" Reason  : you have used your email password to authorised app but app will not used your gmail password instead it will giving error to create Application Specific password. Now If you faced this error the you have to create application specific password for your app and use that password to authenticate your app using SMTP. Solution  : 1. Go to the google account click here : 2. On the left penal Click on the security. 3. Click on app password below 2-Step will ask you password of your gmail account for verification. 4. Select

Deploy Simple React App with Kubernetes gcp | Linux Guru

Here i will explain that how to deploy simple react app to kubernetes easy way, i am using ubuntu machine So , First you need to install npm and node on your local system. Install required package to the system. $ apt-get update $ apt-get install curl $ curl -sL | sudo -E bash - $ apt-get install -y nodejs $ apt-get install -y build-essential To check npm and Node version  :  $ node -v $ npm -v Now we will clone the simple react code from github and build it. $ git clone Go to the directory and install npm in to that and create build. $ cd simple-react-app $ npm install  $ npm run build # it will create build folder from code. Now we will deploy that build to the kubernetes deployments. for that we will have require docker for build that code and upload it to docker container, So now we will create one Dockerfile for build. Build the docker file. It will copy build dir

How to create simple react app Linux guru

How to create simple react app. We will use "create-react-app" package to install and configure simple react application from NPM, Open your terminal and install react app. $ npm i create-react-app -g Now we have install react and now we can create react app, Go to the directory which you want to install react app and run below command. $ create-react-app react-app It will take some time to create app, it will create some of scripts and application for us. So now go to the directory and check. $ cd react-app Now we will launch the application which we have created by react. $ npm start Compiled successfully! You can now view react-app in the browser.   Local:            http://localhost:3000/   On Your Network: Note that the development build is not optimized. To create a production build, use npm run build. You can access it by using your ip and port 3000. You can download app from here :