Kubectl Commands Cheat Sheet and What is Kubernetes

Kubernetes is a platform for managing containerized workloads. Kubernetes orchestrates computing, networking and storage to provide a seamless portability across infrastructure providers. we will cover the following commands in this article. kubectl exec kubectl delete pod kubectl logs kubectl apply kubectl install kubectl get kubectl config kubectl get pods kubectl edit kubectl run kubectl apply […]

5 Useful Examples of Kubeconfig with kubectl config Command

we can use kubeconfig configuration file to store information about different clusters, users, namespaces, and authentication mechanisms. A context element in a kubeconfig file is used to group access parameters under a convenient name. Each context has three parameters: cluster, namespace, and user. By default, the kubectl command-line tool uses parameters from the current context […]

4 Ways to fix SSL: CERTIFICATE_VERIFY_FAILED in Python

SSL certificate_verify_failed errors typically occur as a result of outdated Python default certificates or invalid root certificates. We will cover how to fix this issue in 4 ways in this article. Error info about CERTIFICATE_VERIFY_FAILED <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:777)>   Create unverified context in SSL import ssl context = ssl._create_unverified_context() urllib.request.urlopen(req,context=context) […]

3 Examples to Fix InsecureRequestWarning in Python

These InsecureRequestWarning warning messages show up when a request is made to an HTTPS URL without certificate verification enabled. we will cover how to fix InsecureRequestWarning with 3 examples in this article. We will skip the SSL certificate check in the first and second examples. For the third example, we will add the CA bundle […]

3 Ways to Check SSL Connection error

SSL Connection error is the most common error between client and server. SSL Connection error tells us that we are unable to make a secure connection with the server. That’s to some extent it tells us what the issue is, but what makes it more difficult is that users don’t have an idea what exactly […]

5 Ways to Fix SSL_ERROR_SYSCALL

This article covers how to fix SSL_ERROR_SYSCALL error in 5 ways. $ git clone https://github.com/xxx/xxx.git fatal: unable to access ‘https://github.com/xxx/xxx.git/’: LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443 Restart the computer As we all know, restarting solves 90% of problems, and sometimes restarting the computer can directly solve the problem. Modify Git network configuration For Git’s […]

5 Useful Python 3 Range Function Examples

Python range() is a built-in function available with Python from Python(3.x), and it gives a sequence of numbers based on the start and stop index given. In case the start index is not given, the index is considered as 0, and it will increment the value till the stop index. Python 3 Range Syntax range(start, […]

3 Ways to fix SSH Too many authentication failures

This article will cover how to fix Too many authentication failures for usernames in 3 ways. Too many authentication failures Error Error example 1: Received disconnect from 192.168.3.123 port 22:2: Too many authentication failures Disconnected from 192.168.3.123 port 22 Error Example 2: Too many authentication failures Sep 19 16:21:24 ubuntu sshd[192635]: error: maximum authentication attempts […]

3 Practical Python 3 For Loop Examples

A Python for loop is a set of instructions that is repeated, or iterated, for every value in a sequence. Sometimes for-loops are referred to as definite loops because they have a predefined beginning and end as bounded by the sequence. Python For loop Syntax The general syntax of a for-loop block is as follows. […]

3 Ways to Check Python Version in Linux

In this article, we will cover how to check the Python version in 3 ways.   Check Python Version Commands Example Output python –version or python -V or python -VV Python 3.6.8 import sys sys.version 3.6.8 (default,  Mar 18 2021,  08:58:41) [GCC 8.4.1 20200928 (Red Hat 8.4.1-1)] import sys sys.version_info sys. version_info (major= 3,  minor=6, […]