Setting Up a Single-Node Kubernetes Cluster on Ubuntu 24.04 LTS

1. Introduction Kubernetes is a powerful open-source platform for automating the deployment, scaling, and management of containerized applications. Primarily useful for large-scale distributed systems, it can also be deployed on a single node for development and testing purposes. This guide will walk you through the step-by-step process of installing and configuring a single-node Kubernetes cluster on Ubuntu 24.04 LTS. 2. Prerequisites A machine with Ubuntu 24.04 LTS (recommended minimum 2 CPUs, 2GB RAM, 20GB storage) Root or sudo privileges Internet connectivity 3. Installation Procedure 3.1 Update the System and Install Prerequisite Packages First, let’s update your system to the latest state and install some essential base packages. ...

July 27, 2024 · 4 min · 701 words · In-Jun Hwang

Using Git Stash: A Quick Guide to Saving and Restoring Changes

Introduction Git, a well-known distributed version control system (DVCS), provides a comprehensive suite of features for managing a project’s history and collaborating effectively. While working with Git, situations arise where you want to switch to a different branch while you have uncommitted changes. Attempting to switch branches without committing your changes results in an error message like the following: 1 2 3 4 error: Your local changes to the following files would be overwritten by checkout: file.txt Please commit your changes or stash them before you switch branches. Aborting This error indicates that changes in the file file.txt are blocking the branch switch. In such scenarios, you have the option to either commit your changes or temporarily save them. In this tutorial, we’ll explore how to temporarily save your changes using Git stash, allowing you to switch to a different branch. ...

July 26, 2024 · 3 min · 609 words · In-Jun Hwang

Git Branch Naming: For Effective Collaboration

Introduction Git is an essential version control tool in modern software development. Effective Git usage involves systematic branch management, and following a consistent branch naming convention is a crucial part of it. In this post, we will discuss the fundamental rules and best practices for Git branch naming. Basic Naming Conventions Here are the basic branch naming conventions: Use lowercase: Branch names should always be in lowercase. Use hyphens (-): Separate words with hyphens. Be concise: Keep branch names concise but descriptive. Use English: Favor English for global accessibility. Example: feature-user-authentication ...

July 23, 2024 · 2 min · 331 words · In-Jun Hwang

REST API: From Principles to Considerations

Introduction In modern web development, Representational State Transfer (REST) APIs play a pivotal role. A well-designed REST API enables efficient communication between systems and greatly enhances developer productivity. In this article, we’ll cover everything from the fundamental concepts of REST to the 6 core principles, and delve into specific rules and best practices that you can apply when designing real-world APIs. REST Fundamentals REST is a software architectural style introduced by Roy Fielding in his 2000 doctoral dissertation. REST leverages existing web technologies and the HTTP protocol to define an architecture for distributed hypermedia systems. ...

July 20, 2024 · 4 min · 738 words · In-Jun Hwang

Creating Pull Requests with GitHub CLI

Let’s dive into a detailed explanation of how to create Pull Requests (PRs) using GitHub CLI. GitHub CLI is a tool that allows you to perform GitHub operations directly from the terminal, enabling efficient work without going through the GUI interface. 1. Introduction to GitHub CLI GitHub CLI (gh) is GitHub’s official command-line tool that enables you to use most GitHub features from the terminal. The main benefits of this tool include: ...

July 19, 2024 · 5 min · 961 words · In-Jun Hwang