Buy Me a Coffee
Setting up a Local Kubernetes Cluster for Home Lab

[Kubernetes/K3s] Setting Up a Local Multi-Node Kubernetes Cluster on Different Operating Systems

Setting up a Kubernetes cluster can seem like a mountain to climb, especially when you’re just starting out. However, having a local Kubernetes cluster is a fantastic way to get hands-on experience without worrying about cloud expenses. If you have a spare laptop sitting at home, this guide will help you turn it into a useful part of your Kubernetes home lab using k3s. Whether you’re using Linux, macOS, or Windows, this guide has got your back. ...

macOS GPG signing error

[Git/GPG] Fix the "Inappropriate ioctl for device" Error when Signing GPG Keys

If you’re working on a macOS and trying to set up GPG keys for your GitHub repositories, you might encounter an error that looks like this: error: gpg failed to sign the data: [GNUPG:] KEY_CONSIDERED 8EBBC19D30CD94DAC81EFEDC2A703231B997AC90 2 [GNUPG:] BEGIN_SIGNING H8 [GNUPG:] PINENTRY_LAUNCHED 55465 curses 1.3.2 - xterm-256color - - 501/20 0 gpg: signing failed: Inappropriate ioctl for device [GNUPG:] FAILURE sign 83918950 gpg: signing failed: Inappropriate ioctl for device This is a surprisingly common issue, and it often points to a problem with the pinentry UI - the program that prompts you for your GPG passphrase. ...

[WSL/Swarm] Fail to Join Docker Swarm as Worker

1. Problem I was trying to set up a Docker Swarm environment in my home network. My plan was to run the Docker Swarm manager node in a WSL2 Ubuntu distro on my Windows laptop, and run the Docker Swarm worker node on my MacMini. Both of them have Docker Desktop installed. When I tried to add a worker to the Swarm, I received the following error: Error response from daemon: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 192.168.65.3:2377: connect: connection refused" My operation is as followed below ...

[microk8s] Troubleshooting Microk8s Installation on macOS

Error: Your Command Line Tools are too outdated By following the instruction from the official website Alternative install methods: macOS, I got an error while running brew install ubuntu/microk8s/microk8s as shown below As the prompt suggested, I installed the latest Xcode from the AppStore. (It took quite long to be honest). But it still showed the same error after updating the Xcode to the 13.2.1 The trick is that we should run the following commands: ...

[macOS] How to set environment variable on macOS

It is very common for developers to set Environment Variable while doing some development work or configuring the development environment. There are two kinds of Environment Variable: temporary and permanent. This post will show how to set both on macOS 1. Temporary environment variable We can simply execute the below command in the Terminal export [env_key]=[env_value] For example, to set DEBUG_MODE to true before running the development project. export DEBUG_MODE=true 2. Permanent environment variable Go to the user working directory to locate the file .bash_profile. Normally we can use vi ~/.bash_profile. Add the below command to the bottom of the file export [env_key]=[env_value] Save the changes with :wq in vim Refresh the cache of .bash_profile with source ~/.bash_profile After setting the environment variable, we can type echo ${env_key} to validate if it is successfully set. ...

DigitalOcean Referral Badge
Sign up to get $200, 60-day account credit !