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.

More in Tux Machines

today's howtos

  • Steinar H. Gunderson - Speeding up Samba AD

    One Weird Trick(TM) for speeding up a slow Samba Active Directory domain controller is seemingly to leave and rejoin the domain. (If you don't have another domain controller, you'll need to join one in temporarily.) Seemingly, not only can you switch to LMDB (which has two fsyncs instead of eight on commit—which matters a lot, especially on non-SSDs, as the Kerberos authentication path has a blocking write to update account statistics), but you also get to regenerate the database, giving you the advantage of any new indexes since last upgrade.

  • How to Change File Extensions on Linux

    File extensions help both operating systems and users distinguish between different file formats and understand the contents stored inside them. When you see a file with the ".txt" extension, you instantly know it contains text data. Similarly, ".exe" file is a Windows executable and ".sh" files are Linux shell scripts. But what if you want to change these extensions for some reason? Perhaps you need to rename a text file to a Bash script. Simply writing the code in a text file won't do the job. On Linux, changing file extensions is much easier than you might think.

  • How to Install and Set up PostgreSQL Database on Ubuntu 22.04 LTS (Jammy Jellyfish) – LinuxWizardry

    PostgreSQL is a free and open-source relational database management system that allows both SQL and JSON querying. With over 30 years of active development, it has gained a solid reputation for its reliability, data integrity, extensibility, ACID compliance, and robust features. It allows you to create your own data types, define custom functions, and write different programming language codes without recompiling your database. It is compatible with all major operating systems including Windows, Linux/UNIX, Mac OS, IRIX, Solaris, etc. This tutorial will teach you how to install and set up PostgreSQL on the Ubuntu system.

  • How To Install PlayOnLinux on Ubuntu 22.04 LTS - idroot

    In this tutorial, we will show you how to install PlayOnLinux on Ubuntu 22.04 LTS, as well as some extra required packages by PlayOnLinux

  • Setting Up Environment Variables on Ubuntu – TecAdmin

    An environment variable contains a value, that is used to change the behaviors of the processes at run time. Similar to the other operating systems, we can also set the environment variables on a Ubuntu system.

  • How to Hide Lock Screen option from System Menu in Ubuntu 22.04 | UbuntuHandbook

    Want to hide the lock screen option from the upper-right corner system menu? Here’s how to do the trick in Ubuntu 22.04 LTS. For Ubuntu, Fedora and other Linux with GNOME desktop, the screen lock can be disabled either totally or only from the system menu.

Free, Libre, and Open Source Software

Ole Aamoton GNOME Voice, GNOME Radio, and Gingerblue

  • Voice 0.0.4 for GNOME 42

    Voice will let you listen to and share short, personal and enjoyable Voicegrams via electronic mail and on the World Wide Web by GNOME executives, employees and volunteers. Ogg Vorbis is a patent-free audio codec that more and more Free Software programs, including GNOME Voice ( have implemented, so that you can listen to Voicegram recordings with good/fair recording quality by accessing the Voicegram file $HOME/Music/GNOME.ogg in the G_USER_DIRECTORY_MUSIC folder in Evolution or Nautilus.

  • Radio 16.0.43 for GNOME 42 (gnome-radio) – Ole Aamot

    New stations in GNOME Radio version 16.0.43 is NRK Folkemusikk (Oslo, Norway), NRK P1+ (Oslo, Norway), NRK P3X (Oslo, Norway), NRK Super (Oslo, Norway), Radio Nordfjord (Nordfjord, Norway), and Radio Ålesund (Ålesund, Norway).

  • Gingerblue 6.0.1 with Immediate Ogg Vorbis Audio Encoding

    Gingerblue 6.0.1 is Free Music Recording Software for GNOME available under GNU General Public License version 3 (or later) that now supports immediate Ogg Vorbis audio recordings in compressed Ogg Vorbis encoded audio files stored in the $HOME/Music/ folder.

GUADEC 2022 Conference Takes Place July 20–25 in Guadalajara, Mexico, for GNOME 43

GUADEC 2022 is the first in-person GUADEC event in the last two years due to the COVID-19 pandemic and associated traveling restrictions and health safety measures, and it also marks GNOME’s 25th anniversary. Read more