1. Create an account on Google Cloud, and search Kubernetes Engineer 2. Launch the Kubernetes Engine API 3. Name your cluster and create it
What is Kubernetes?
In short, an orchestrator (like Kubernetes) brings together a set of microservices and organizes them into an application that brings value. It also provides and manages cloud-native features such as scaling, self-healing, and updating. OS of the cloud “Abstracting and commoditizing infrastructure” is a fancy way of saying that Kubernetes makes it so you don’t …
What is Cloud Native & Orchestrator?
What is Cloud Native In one of my interview, for a cloud based position, I asked my interviewer a question at the end, "could you give some advice to be a real cloud engineer?". And the answer I get is, "you can play with some cloud native things". So what is Cloud Native? A cloud-native …
How to iterate HashMap in Java
Iterate the Entry // Java program to demonstrate iteration over // Map.entrySet() entries using for-each loop import java.util.Map; import java.util.HashMap; class IterationDemo { public static void main(String[] arg) { Map<String,String> gfg = new HashMap<String,String>(); // enter name/url pair gfg.put("GFG", "geeksforgeeks.org"); gfg.put("Practice", "practice.geeksforgeeks.org"); gfg.put("Code", "code.geeksforgeeks.org"); gfg.put("Quiz", "quiz.geeksforgeeks.org"); // using for-each loop for iteration over Map.entrySet() for …
Enable an Image to Be Parameterized in Docker
Create a .js file var radius = process.env.diameter / 2; var area = Math.pow(radius, 2) * Math.PI; console.log( `Area of a ${radius} cm radius disk: ${area} cm²` ); Create a file named Dockerfile and add the following code to it: FROM node:11-alpine ENV diameter=4.0 COPY compute.js . CMD node compute.js Open a command-line. Change the …
Continue reading “Enable an Image to Be Parameterized in Docker”
Volume in Docker
When a container writes files, it writes them inside of the container. Which means that when the container dies (the host machine restarts, the container is moved from one node to another in a cluster, it simply fails, etc.) all of that data is lost. It also means that if you run the same container …
How to configure Maven PATH and use mvn on Windows command line
Right click on My Computer >> Properties >> Advanced system settings >> System Properties window will get displayed Under Advanced >> Environment Variables Click on New to set Environment Variables Variable name: JAVA_HOME Variable value: C:\Program Files\Java\jdk1.8.0_121 Variable name: M2 Variable value: %M2_HOME%\bin Variable name: M2_HOME Variable value: C:\Program Files\Apache Software Foundation\apache-maven-3.5.0 Variable name: Path …
Continue reading “How to configure Maven PATH and use mvn on Windows command line”
Why Docker and Basic Concepts
Why Docker Why Containers Containers make deployment easy. Deploying is as simple as running a new container, routing users to the new one, and trashing the old one. It can even be automated by orchestration tools. Since it’s so easy, we can afford to have many containers serving a single application for increased stability during …
What is the difference between HTTP and HTTPS
HTTP: No Data Encryption Implemented Every URL link that begins with HTTP uses a basic type of “hypertext transfer protocol”. HTTP is also called “a stateless system”, which means that it enables connection on demand. You click on a link, requesting a connection, and your web browser sends this request to the server, which responds …
Continue reading “What is the difference between HTTP and HTTPS”
PriorityQueue in Java
A PriorityQueue is used when the objects are supposed to be processed based on the priority. It is known that a Queue follows the First-In-First-Out algorithm, but sometimes the elements of the queue are needed to be processed according to the priority, that’s when the PriorityQueue comes into play. The PriorityQueue is based on the …