π [SOLVED] Node had taints, that the pod didnβt tolerate
Kubernetes (K8s) has a feature, that allows to mark (taint) a Node, so that no Pods can be scheduled on it, unless a Pod explicitly tolerates the taint.
If you try to deploy the Pod that doesn't tolerate any of the K8s Nodes' taints, you will get an error as follows:
0/5 nodes are available: 1 node(s) had taint {node-role.node-role.kubernetes.io/master: }, that the pod didn't tolerate, 2 node(s) had taint {dedicated: agents}, that the pod didn't tolerate, 2 node(s) had taint {dedicated: controllers}, that the pod didn't tolerate.
To tolerate the K8s Nodes' taints, it is required to specify a toleration for the Pod in the PodSpec, and below I will show the examples of how to do this.
π Continue Reading
Kubernetes (K8s) has a feature, that allows to mark (taint) a Node, so that no Pods can be scheduled on it, unless a Pod explicitly tolerates the taint.
If you try to deploy the Pod that doesn't tolerate any of the K8s Nodes' taints, you will get an error as follows:
0/5 nodes are available: 1 node(s) had taint {node-role.node-role.kubernetes.io/master: }, that the pod didn't tolerate, 2 node(s) had taint {dedicated: agents}, that the pod didn't tolerate, 2 node(s) had taint {dedicated: controllers}, that the pod didn't tolerate.
To tolerate the K8s Nodes' taints, it is required to specify a toleration for the Pod in the PodSpec, and below I will show the examples of how to do this.
π Continue Reading
ShellHacks
[SOLVED] Node had taints, that the pod didn't tolerate - ShellHacks
How to fix the error "Node(s) had taints, that the pod didnβt tolerate" by adding a K8s Nodes' taints toleration for a Pod in the PodSpec.
π Install ArgoCD CLI on Windows
An ArgoCD CLI is the official command-line interface for an ArgoCD.
It can be used to interact with the ArgoCD API server and manage ArgoCD applications.
In this post I will show how to download and install the latest stable version of the ArgoCD CLI on Windows through a graphical user interface (GUI), or using a command-line prompt (CMD) or PowerShell.
π Continue Reading
An ArgoCD CLI is the official command-line interface for an ArgoCD.
It can be used to interact with the ArgoCD API server and manage ArgoCD applications.
In this post I will show how to download and install the latest stable version of the ArgoCD CLI on Windows through a graphical user interface (GUI), or using a command-line prompt (CMD) or PowerShell.
π Continue Reading
ShellHacks
Install ArgoCD CLI on Windows - ShellHacks
Install the latest stable version of an ArgoCD CLI on Windows using GUI, command-line prompt (CMD) or PowerShell.
π GitHub: Download Latest Release Link
A GitHub's release feature allows to provide links to download specific versions of a published software.
However, if you need to download the latest version of a package, you will have to update the version number in the URL each time a new release is made.
This post shows how to make a direct link to download the latest release of a file from an asset on GitHub.
π Continue Reading
A GitHub's release feature allows to provide links to download specific versions of a published software.
However, if you need to download the latest version of a package, you will have to update the version number in the URL each time a new release is made.
This post shows how to make a direct link to download the latest release of a file from an asset on GitHub.
π Continue Reading
ShellHacks
GitHub: Download Latest Release Link - ShellHacks
How to make a direct link to download the latest release version of a file from an asset on GitHub.
π MikroTik: OpenVPN Server Setup
Configuring an OpenVPN server on a MikroTik router can be a complex task, especially for beginners with limited experience in networking.
Below you will find how to setup the OpenVPN server on your MikroTik router from a command-line (terminal) quickly and easily, and how to connect to it using an OpenVPN client.
π Continue Reading
Configuring an OpenVPN server on a MikroTik router can be a complex task, especially for beginners with limited experience in networking.
Below you will find how to setup the OpenVPN server on your MikroTik router from a command-line (terminal) quickly and easily, and how to connect to it using an OpenVPN client.
π Continue Reading
ShellHacks
MikroTik: OpenVPN Server Setup - ShellHacks
How to configure an OpenVPN server on a MikroTik router from a command-line (terminal), and how to connect to it using an OpenVPN client.
π Bing Chat: How To Access in Microsoft Edge
Bing Chat is an artificial intelligence (AI) chatbot developed by Microsoft and released in 2023.
The current version of Bing Chat is based on the GPT-4 large language model (LLM) created by OpenAI.
Bing Chat is free to use and available to the public as a built-in feature of Microsoft Edge.
This note shows how to access Bing Chat in Microsoft Edge.
π Continue Reading
Bing Chat is an artificial intelligence (AI) chatbot developed by Microsoft and released in 2023.
The current version of Bing Chat is based on the GPT-4 large language model (LLM) created by OpenAI.
Bing Chat is free to use and available to the public as a built-in feature of Microsoft Edge.
This note shows how to access Bing Chat in Microsoft Edge.
π Continue Reading
ShellHacks
Bing Chat: How To Access in Microsoft Edge - ShellHacks
How to access Bing Chat in Microsoft Edge and get a conversation with an AI-powered chatbot for free.
π Kubectl Autocomplete in PowerShell
A
This feature can be enabled in Windows PowerShell by invoking a simple
Though this way it will be enabled temporary for the current session only.
To enable the
π Continue Reading
A
kubectl
autocomplete is a feature that helps to complete kubectl
commands or filenames automatically by pressing the βΉ Tab key.This feature can be enabled in Windows PowerShell by invoking a simple
kubectl completion powershell
command.Though this way it will be enabled temporary for the current session only.
To enable the
kubectl
autocomplete feature permanently it is required to add some commands to your Powershell $PROFILE
file and this post shows how to do this. π Continue Reading
ShellHacks
Kubectl Autocomplete in PowerShell - ShellHacks
How to enable a `kubectl` autocomplete feature permanently in Windows PowerShell and how to create an alias for the `kubectl` command.
π [SOLVED] PowerShell: Running scripts is disabled on this system
While trying to run a PowerShell script you may get an error message that says "cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170."
This error message is due to the default execution policy set by PowerShell, that determines whether PowerShell scripts can be run on a system.
By default, the execution policy is set to
To fix this error message, it is required to change the execution policy to
π Continue Reading
While trying to run a PowerShell script you may get an error message that says "cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170."
This error message is due to the default execution policy set by PowerShell, that determines whether PowerShell scripts can be run on a system.
By default, the execution policy is set to
Restricted
, which means that PowerShell scripts cannot be run.To fix this error message, it is required to change the execution policy to
RemoteSigned
and this post shows how to do this. π Continue Reading
ShellHacks
[SOLVED] PowerShell: Running scripts is disabled on this system - ShellHacks
How to fix the error message "running scripts is disabled on this system" in PowerShell by changing the execution policy.
π WHOIS Command on Windows β PowerShell & CMD
In Linux, a
But if you try to run the
'whois' is not recognized as an internal or external command,
operable program or batch file.
- or -
whois : The term 'whois' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
This post shows how to install the
π Continue Reading
In Linux, a
whois
command is used to lookup information about domains or IP addresses.But if you try to run the
whois
command on Windows from PowerShell or command prompt (CMD), you will receive one of the errors below:'whois' is not recognized as an internal or external command,
operable program or batch file.
- or -
whois : The term 'whois' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
This post shows how to install the
whois
command on Windows and make it available in PowerShell and CMD. π Continue Reading
ShellHacks
WHOIS Command on Windows - PowerShell & CMD - ShellHacks
This post shows how to install a `whois` command on Windows and make it available in PowerShell and CMD.
π Install Kubectx & Kubens on Windows
This post shows how to install
π Continue Reading
kubectx
and kubens
are two command-line tools that can help to manage Kubernetes clusters and namespaces more efficiently.kubectx
is used for switching between Kubernetes contexts (clusters) faster, while kubens
is used for switching between Kubernetes namespaces more easily.This post shows how to install
kubectx
and kubens
on Windows so they can be used from PowerShell or Command Prompt (CMD). π Continue Reading
ShellHacks
Install Kubectx & Kubens on Windows - ShellHacks
How to install `kubectx` and `kubens` on Windows so they can be used from PowerShell or Command Prompt (CMD).
π Kubectl: Port-Forward to Service β Kubernetes
It tunnels the traffic from a specified port on a localhost to the specified port on the specified Pod.
The
This post shows the examples of how to use the
π Continue Reading
kubectl port-forward
is a Kubernetes command that allows to access internal cluster resources from outside the cluster.It tunnels the traffic from a specified port on a localhost to the specified port on the specified Pod.
The
kubectl port-forward
command is useful for troubleshooting issues, setting up services locally without exposing them, and debugging applications within the cluster.This post shows the examples of how to use the
kubectl port-forward
command to access the internal cluster resources from the locathost. π Continue Reading
ShellHacks
Kubectl: Port-Forward to Service - Kubernetes - ShellHacks
How to use `kubectl port-forward` command to access internal Kubernetes cluster resources from outside the cluster, particularity form a localhost.
π Dig Without Cache
For the same reason the cache responses can come from the configured name servers.
This is useful when you are querying the same domain multiple times, but it can be problematic when you need to check if a change you made to a DNS record has propagated.
Luckily, the
π Continue Reading
dig
can return cached responses because it caches the results of previous queries to improve performance.For the same reason the cache responses can come from the configured name servers.
This is useful when you are querying the same domain multiple times, but it can be problematic when you need to check if a change you made to a DNS record has propagated.
Luckily, the
dig
command can be forced to resolve without using cache and this post demonstrates how to do this. π Continue Reading
ShellHacks
Dig Without Cache - ShellHacks
This post explains how to use the `dig` command to resolve DNS queries without using cache.
π1
π Windows: Measure Command Execution Time in PowerShell
The
In Windows PowerShell there is a built-in
This short post shows how to use the
π Continue Reading
The
time
command in Linux and Unix-like operating systems is used to determine how long a specific command or script will take to run. In Windows PowerShell there is a built-in
Measure-Command
, that can be considered as the Linux time
command equivalent.This short post shows how to use the
Measure-Command
in PowerShell to evaluate the processing time taken by different commands, scripts or programs in their execution. π Continue Reading
ShellHacks
Windows: Measure Command Execution Time in PowerShell - ShellHacks
How to measure a command, script or program execution time in Windows PowerShell by using the built-in `Measure-Command` utility.
π Kubectl: Delete All Pods in Namespace
Pods in Kubernetes (K8s) can be deleted by using a simple
If there are multiple Pods in a namespace and you want to delete them all, this also can be done using the appropriate
This short post shows how to delete all Pods in a specific namespace using the
π Continue Reading
Pods in Kubernetes (K8s) can be deleted by using a simple
kubectl delete pod
command.If there are multiple Pods in a namespace and you want to delete them all, this also can be done using the appropriate
kubectl
command.This short post shows how to delete all Pods in a specific namespace using the
kubectl
command. π Continue Reading
ShellHacks
Kubectl: Delete All Pods in Namespace - ShellHacks
How to delete all Pods in a Namespace using the `kubectl` command and how to force the deletion of the Pods that are restating instead of getting deleted .
π MikroTik: Get Default Configuration
There can be many reasons why you need to get the default configuration of your MikroTik router.
One of them is to compare the current settings with the default ones, while troubleshooting some issues.
This short post shows how to print the default MikroTik configuration.
π Continue Reading
There can be many reasons why you need to get the default configuration of your MikroTik router.
One of them is to compare the current settings with the default ones, while troubleshooting some issues.
This short post shows how to print the default MikroTik configuration.
π Continue Reading
ShellHacks
MikroTik: Get Default Configuration - ShellHacks
How to export a default configuration of a MikroTik router.
π MikroTik: Block Internet Access by IP/MAC
More and more smart devices with an Internet connectivity are appearing in our homes.
If you don't want your smart socket, robot vacuum cleaner or IP camera to leak your personal data, you can block these devices from accessing the Internet by their IP/MAC addresses.
In this post I will show you how to block an Internet access by IP/MAC using a MikroTik router.
π Continue Reading
More and more smart devices with an Internet connectivity are appearing in our homes.
If you don't want your smart socket, robot vacuum cleaner or IP camera to leak your personal data, you can block these devices from accessing the Internet by their IP/MAC addresses.
In this post I will show you how to block an Internet access by IP/MAC using a MikroTik router.
π Continue Reading
ShellHacks
MikroTik: Block Internet Access by IP/MAC - ShellHacks
How to block an Internet access for devices by their IP/MAC addresses in MikroTik RouterOS and how to log their attempts access the Internet.
π MikroTik: Simple Guest WiFi Setup on hAP axΒ³ (WifiWave2)
MikroTik routers with WiFi, like hAP axΒ³ with
The guest WiFi gives clients access to the Internet, but isolates them from your main network, so they can't see and don't have ability to access any of your devices on it.
For example, to improve the security, you can put all your IoT devices on the guest WiFi network, so if one of them is hacked, the attacker won't be able to get access to the devices on the main network.
This post shows how to perform a quick setup of the simple guest WiFi network on MikroTik hAP axΒ³ with
π Continue Reading
MikroTik routers with WiFi, like hAP axΒ³ with
wifiwave2
package, give the ability to create a "guest WiFi network".The guest WiFi gives clients access to the Internet, but isolates them from your main network, so they can't see and don't have ability to access any of your devices on it.
For example, to improve the security, you can put all your IoT devices on the guest WiFi network, so if one of them is hacked, the attacker won't be able to get access to the devices on the main network.
This post shows how to perform a quick setup of the simple guest WiFi network on MikroTik hAP axΒ³ with
wifiwave2
package. π Continue Reading
ShellHacks
MikroTik: Simple Guest WiFi Setup on hAP axΒ³ (WifiWave2) - ShellHacks
MikroTik routers with WiFi, like hAP axΒ³ with wifiwave2 package, give the ability to create a βguest WiFi networkβ. The guest WiFi gives clients access to the Internet, but isolates them from your main network, so they canβt see and donβt have ability toβ¦
π cmd.EXE Keeps Popping Up [SOLVED]
Many Windows users are encountering a problem of a
If you are also facing the black
This note shows how to identify and disable a scheduled task that causes
π Continue Reading
Many Windows users are encountering a problem of a
cmd.EXE
window of a command prompt that seems to be opens randomly and closes so quickly, that you don't have time to do anything with it.If you are also facing the black
cmd.EXE
window that keeps popping up and disappearing, most of all it is caused by some automatic task that is launching it.This note shows how to identify and disable a scheduled task that causes
cmd.EXE
to keep popping up. π Continue Reading
ShellHacks
cmd.EXE Keeps Popping Up [SOLVED] - ShellHacks
cmd.EXE keeps popping up and closing quickly? Learn how to identify and disable the program that causes cmd.EXE to open and close randomly.
π Synology NAS: First Time Installation & Setup Guide
A fist time installation and initial setup of a Synology NAS is actually a quite easy process.
After unboxing your Synology NAS, ensure that it comes with one AC power cord + adapter and, at least, one RJ-45 LAN cable.
The basic Synology NAS configuration implies installation of hard drives, Synology's operating system and creation of RAID/volume where you will actually store all the packages and files.
This post provides a simple and easy to follow step-by-step beginnerβs guide for setting up the Sinology NAS using the Sinology DiskStation DS1522+ as an example.
π Continue Reading
A fist time installation and initial setup of a Synology NAS is actually a quite easy process.
After unboxing your Synology NAS, ensure that it comes with one AC power cord + adapter and, at least, one RJ-45 LAN cable.
The basic Synology NAS configuration implies installation of hard drives, Synology's operating system and creation of RAID/volume where you will actually store all the packages and files.
This post provides a simple and easy to follow step-by-step beginnerβs guide for setting up the Sinology NAS using the Sinology DiskStation DS1522+ as an example.
π Continue Reading
ShellHacks
Synology NAS: First Time Installation & Setup Guide - ShellHacks
A simple and easy to follow step-by-step beginnerβs guide to setting up a Sinology NAS using the Sinology DiskStation DS1522+ as an example.
π1
π PowerShell: Get Command Help (βhelp/-h/?) [SOLVED]
The
In Windows PowerShell the
However, at first, it may not be so obvious how to actually call the
π Continue Reading
The
help
command is a special command that is used to provide more information on another commands.In Windows PowerShell the
help
command can be called at any time to learn more about a commandβs usage and syntax, like the available options and how to structure the command to use these options.However, at first, it may not be so obvious how to actually call the
help
command in PowerShell and this short post can help with this. π Continue Reading
ShellHacks
PowerShell: Get Command Help (-help/-h/?) [SOLVED] - ShellHacks
Learn how to get a command `help` in Windows PowerShell with examples.
π1
π Windows: PowerShell `Tail`, & `Head` Equivalents
The
Windows PowerShell, in its turn, also has equivalents of the Linux
From this short post you will learn how to use the equivalents of the
π Continue Reading
The
tail
and head
are two of the most commonly used commands for displaying the contents of a file in Linux.Windows PowerShell, in its turn, also has equivalents of the Linux
tail
and head
commands.From this short post you will learn how to use the equivalents of the
tail
and head
commands in Windows PowerShell and how to dynamically print a file's contents, i.e. follow it like using tail -f
. π Continue Reading
ShellHacks
Windows: PowerShell `Tail`, & `Head` Equivalents - ShellHacks
Equivalents of the Linux `tail` and `head` commands in Windows PowerShell. How to dynamically print a file's contents, i.e. follow it like using `tail -f`.
π1