Language Selection

English French German Italian Portuguese Spanish

today's howtos

Filed under
  • What is Kubectl Rollout Restart?

    Kubernetes is a free and open-source platform for managing, scaling, and deploying containerized applications. If you have worked with Kubernetes before, you know how valuable it is for container management. You will also be aware that containers don’t always perform as expected. If a mistake occurs, you’ll need a quick and simple solution.

    Pods in Kubernetes should typically run until a new deployment replaces them. As a result, “restarting” a single Pod is not possible. When one of the containers fails, instead of restarting it, replace it. The small change in terminology better aligns with Kubernetes Pods’ stateless operating architecture. To eliminate old containers and begin fresh new instances, start a rollout. One can also manually remove Pods from a ReplicaSet or scale the replica count. For modern Kubernetes releases, rollouts are the preferred method, but other ways can be more suited to specific cases. This guide will show different ways to restart Kubernetes pods.

    To run the instructions in Kubernetes, you will need to install Ubuntu 20.04 on your Linux operating system. To run Kubernetes on Linux, you must also install the Minikube cluster on your workstation. Minikube creates a smooth experience by allowing you to test commands and programs systematically. As a result, it offers the best learning experience for Kubernetes beginners. The minikube cluster must be started initially. Then, in Ubuntu 20.04, go to the command line terminal you just installed. By using the Ctrl+Alt+T shortcut key or putting “Terminal” into the Ubuntu 20.04 system’s search box, you can do so.

  • What is Kubectl Proxy?

    user outside of a Kubernetes cluster can utilize the Kubernetes API server proxy to connect to cluster IPs that would otherwise be unavailable. This, for example, enables access to a service that is only available within the cluster’s network. Between the user and the in-cluster endpoint, the apiserver works as a proxy and a bastion.

    We installed Ubuntu 20.04 on our Linux operating system to run the instructions in Kubernetes. You can follow it. You must additionally install the Minikube cluster on your computer to run Kubernetes on Linux. Minikube makes testing commands and programs easy by allowing you to do so in a methodical manner. As a result, it provides the finest Kubernetes learning experience for newcomers. Initially, the minikube cluster must be started. Then, in Ubuntu 20.04, go to the newly installed command line terminal. You can do so by pressing the Ctrl+Alt+T shortcut key or typing “Terminal” into the Ubuntu 20.04 system’s search box. Either of the aforementioned techniques will start the terminal. The minikube will be started after that. Type “minikube start” into the terminal to start the minikube. The Kubernetes cluster will be launched after a virtual machine capable of operating a single node cluster has been built. It’s also compatible with the kubectl environment. This will be used to communicate with the cluster at first.

  • Create an EC2 instance on AWS using Terraform

    In this article, we will see how to create an EC2 Instance using Terraform. Before proceeding, I assume that you are familiar with the basics of Terraform and AWS EC2 Instance. If you want to learn to create an EC2 instance from the AWS console then click here.

  • Postgres Update Rows

    PostgreSQL allows you to insert, update or delete values in a column or row through built-in keywords of “INSERT”, “UPDATE”, and “DELETE”. These keywords make it less complicated, time-efficient, and scalable for users to modify their table rows or columns. In this article, we will be talking about how you can update your rows in a table using the “UPDATE” keyword in PostgreSQL. You will learn different implementations of how to update rows in a table and making it more understandable. To update rows, you need to use the “UPDATE” keyword in your statement. The use of the “UPDATE” command is to modify any changes in your table.

  • Vim Regular Expressions

    Regular expressions (or regexps for short) are tools that are used to alter text and data. They are not available as a stand-alone product but rather as part of a software or utility. UNIX grep, a program that searches files for lines that fit a pattern, is the most well-known example. Regexps can be thought of as a sophisticated pattern language. Regexps are extremely handy and can drastically minimize the amount of time it takes to complete tedious text editing tasks.

    Regular expressions appear to be fast gaining favor among VIM users as they learn about the incredible programming capability that they can bring. VIM’s syntax differs slightly from Perl’s, but it’s close enough. As a result, VIM users can benefit from Perl regular expression examples. In this article, we will discuss the most commonly used regular expressions in vim with examples. Let’s get started.

  • Postgres Insert Into Table Examples

    In PostgreSQL, you have created a table with various columns in it. Now, you need to insert data into those columns. There raises the question, how will you do that? Well, it’s not that difficult. If you follow this guide, most of your questions regarding inserting the data into the table will be answered adequately. This article will guide you on inserting values in a table by demonstrating several examples in PostgreSQL. The purpose of the “INSERT INTO” statement is to add a new row with the values of your database table. You can add single or multiple rows, as well using the “INSERT INTO” statement.

  • Execute Bash in a Pod with Kubectl?

    This article demonstrates how to get a shell into a running container using kubectl exec. This article should be done on a cluster with a minimum of two nodes that do not control plane hosts. You can use minikube to construct a cluster if you don’t currently have one.

    To run the instruction in Kubernetes, you will need Ubuntu 20.04 deployed on your Linux operating system. To run Kubernetes on Linux, you’ll also need to install the Minikube cluster on your PC. Minikube makes it simple to test commands and programmers by allowing you to do it systematically. As a result, it gives novices the best Kubernetes learning experience possible. The minikube cluster should be started first. Go to the newly installed command prompt terminal in Ubuntu 20.04. By using the Ctrl+Alt+T shortcut key or putting “Terminal” into the Ubuntu 20.04 system’s search box, you could do so. Either of the preceding ways will fully initiate the minikube on the terminal shell. The minikube will be started after that.

  • Vanilla Vim is fun |

    When you start Vim with the --clean option, it shows up in "vanilla" mode. No plugins, no configuration, just back to the roots. I have collected a ton of configuration statements over the years, some of them dating from MS-DOS or Windows 3.1. Here is the deal: I will start from scratch to find a good starting-point configuration with just the plugins available in Fedora 35. Will I survive a week of coding? I'll find out!

    Here are the rules: Minimum possible configuration statements and only plugins which ship with Fedora 35+. By the way, if you are not a Fedora user, continue reading. You can always install these plugins from your OS package manager manually or using a Vim plugin manager.

    Before I start, there's the elephant in the room: Vim or Neovim (fork of Vim) question. Well, this is up to you. Everything that is in this article should work for both. However, I only tested with Vim. All the skills will come in handy when you log on to a server where only vi is available. It can be either an old UNIX system, a Linux server with minimum software installed for better security, an interactive shell in a container, or an embedded system where space is precious.