Installing TypeScript Choose one of these This will allow you to run tsc command. To test whether a TypeScript file compiles you create one: and then run tsc index.ts. You end up with an error: The reason is that name property is already defined on the window object (global scope), so you either have to […]

You need Node >= 10.16 and npm >= 5.6. Creating a React with TypeScript project Rendering JSX Rendering JSX into the DOM: React elements are immutable Once you create an element, you can’t change its children or attributes. You would have to call render again to see changes. React DOM then compares the element and […]

Your application might consist of hundreds of files. To run those files in production you need to optimize them. There are many ways to optimize your source code for production. Webpack is helping you here. Webpack is a built tool that “bundles” code for development or production, depending on its configured mode. All configuration is […]

What is Helm and why would you need it? What problem does it solve? How you deploy to Kubernetes without Helm Maybe so far you have deployed your applications to Kubernetes by doing these steps: Create Docker Images of your application code Create YAML files specifying Kubernetes objects that your application requires (Deployment, Services, Secret, […]

As mentioned before, a Pod is Kubernetes’ most atomic deployable unit. Containers must always be placed within a Pod. A Pod always belongs to one and only one node (which is located at a certain region in the world). Pods have a life cycle including phases such as init, pending, running, succeeded or failed. Pods […]

A classic example of multi container pods is when you have your Main app Container separated from a Container that has helper code. That way you separate responsibility and the Helper Container can be reused in other pods. Multi Container patterns Depending on the role of each container in a Pod, best practices (or design […]

Networking using Services Each Pod has its own IP address. Containers within a Pod can communicate with each other via their ports over localhost. But how does one Pod communicate with another? We cannot rely on a Pod’s IP address because they get dynamically created or destroyed along with the Pod. The solution: We use […]

The word deployment is a bit overloaded with different meanings: A deployment is about getting your application code running on servers. In Kubernetes a Deployment is also the name of a resource or API object that deals with deployments. You will end up defining YAML-files that create these Deployment resources. k8syaml.com can assist you to […]

The basic idea behind Docker Compose is to save you a lot of typing when creating, configuring, stopping, rebuilding or inspecting your containers. We create a docker-compose,yml file to define our docker resources, such as containers (called services in this context), networks and volumes. Then we use a single command to spin everything up or […]

Docker Images are the blueprints or templates that contain all the files. They are portable between systems and allow snapshots and versioning. It is not the images that are executed, instead you create instances from images.