k8s

Install Cert Manager on k8s cluster with nginx ingress

Install Cert Manager on k8s cluster with nginx ingress

Sam
Install cert-manager using helm chart Add jetstack repo # https://cert-manager.io/docs/installation/helm/ helm repo add jetstack https://charts.jetstack.io --force-update Install certmanager from jetstack repo helm install \ cert-manager jetstack/cert-manager \ --namespace cert-manager \ --create-namespace \ --version v1.15.0 \ --set crds.enabled=true # output: NAME: cert-manager LAST DEPLOYED: Sun Jun 16 20:29:49 2024 NAMESPACE: cert-manager STATUS: deployed REVISION: 1 TEST SUITE: None NOTES: cert-manager v1.15.0 has been deployed successfully! In order to begin issuing certificates, you will need to set up a ClusterIssuer or Issuer resource (for example, by creating a ‘letsencrypt-staging’ issuer).

Getting Started with Minikube

Minikube Tips and tricks

Sam
Getting Started with Minikube and Kubernetes: Creating and Exposing a Deployment When working with Kubernetes locally, Minikube provides an easy-to-use environment for spinning up clusters. In this tutorial, you will learn how to create a Kubernetes deployment, expose it as a service, and access the service via the terminal. Prerequisites Installed Minikube Installed kubectl (Kubernetes CLI) Step 1: Create a Deployment The first step is to create a Kubernetes deployment.

helm tricks

Kubernetes tips & tricks, how to change namespace for a cluster

Sam
Helm tips & tricks # look at the helm environment helm env # output HELM_BIN="helm" HELM_BURST_LIMIT="100" HELM_CACHE_HOME="$HOME/Library/Caches/helm" HELM_CONFIG_HOME="$HOME/Library/Preferences/helm" HELM_DATA_HOME="$HOME/Library/helm" HELM_DEBUG="false" HELM_KUBEAPISERVER="" HELM_KUBEASGROUPS="" HELM_KUBEASUSER="" HELM_KUBECAFILE="" HELM_KUBECONTEXT="" HELM_KUBEINSECURE_SKIP_TLS_VERIFY="false" HELM_KUBETLS_SERVER_NAME="" HELM_KUBETOKEN="" HELM_MAX_HISTORY="10" HELM_NAMESPACE="default" HELM_PLUGINS="$HOME/Library/helm/plugins" HELM_QPS="0.00" HELM_REGISTRY_CONFIG="$HOME/Library/Preferences/helm/registry/config.json" HELM_REPOSITORY_CACHE="$HOME/Library/Caches/helm/repository" HELM_REPOSITORY_CONFIG="$HOME/Library/Preferences/helm/repositories.yaml" # verify if a chart is ok helm lint # output ==> Linting . [INFO] Chart.yaml: icon is recommended 1 chart(s) linted, 0 chart(s) failed # download dependencies helm dependency build # output Hang tight while we grab the latest from your chart repositories.

ingress demo in minikube

Kubernetes tips & tricks, how to change namespace for a cluster

Sam
Introduction In this tutorial, we will demonstrate how to set up an ingress controller in Minikube. This is a crucial step for managing external access to services in a Kubernetes cluster. By the end of this guide, you will have a working ingress setup that routes traffic to an Nginx service. Prerequisites Before you begin, ensure you have the following installed: Minikube kubectl A text editor Step-by-Step Guide 1.

istio ingress tricks

istio ingress tricks

Sam
Introduction In this guide, we will explore various tips and tricks for managing Istio ingress in your Kubernetes cluster. Istio is a powerful service mesh that provides a uniform way to secure, connect, and observe microservices. By the end of this article, you will have a better understanding of how to install and configure Istio components using Helm, deploy a sample application, and verify the installation. Prerequisites Before you begin, ensure you have the following:

istio-setup-on-kubernetes

set up istio from scratch

Sam
Introduction In this guide, we will walk you through the process of setting up Istio on a Kubernetes cluster. Istio is a powerful service mesh that provides a uniform way to secure, connect, and observe microservices. By the end of this tutorial, you will have a fully functional Istio setup on your Kubernetes cluster. Prerequisites Before you begin, ensure you have the following: A running Kubernetes cluster kubectl command-line tool installed helm package manager installed Step-by-Step Guide 1.

k8s tips and tricks

Kubernetes tips & tricks, how to change namespace for a cluster

Sam
Introduction In this article, we will explore various tips and tricks for managing Kubernetes (k8s) clusters using kubectl. These commands will help you efficiently handle namespaces, pods, deployments, and custom resource definitions (CRDs). Change the kubectl namespace while keeping the current context intact # change namespace of kubectl while keeping current context kubectl config set-context --current --namespace=default List pods from default namespace kubectl get pods List pods from all namespaces kubectl get pods -A # list pods from all namespaces List pods from a particular namespace kubectl get pods -n mynamespace How to check logs of a pod kubectl logs nginx-pod -n nginix-ns How to check logs of a pod as it gets generated or watch k8s pod logs ## use -f to follow the log as it generated kubectl logs <pod_name> -n <namespace> -f Deleting a Kubernetes deployment using kubectl If you don’t have proper permissions on the cluster, you will encounter an error like this.

Running Kubernates locally on MacOS

Running Kubernates locally on MacOS

Sam
Running Kubernates locally on MacOS Install Corectl https://github.com/TheNewNormal/corectl.app/releases corectl version corectl run To list the images corectl list # Output: locally available images - alpha channel - 1262.0.0 List running CoreOS instances corectl ps Server: Version: 0.7.18 Go Version: go1.7.3 Built: Wed Nov 09 15:43:38 WET 2016 OS/Arch: darwin/amd64 Pid: 34218 Uptime: 10 minutes ago Activity: Active VMs: 1 Total Memory: 1024 Total vCores: 1 UUID: 28A7D3A4-86A8-4A48-BF51-7F58073073C2 Name: 28A7D3A4-86A8-4A48-BF51-7F58073073C2 Version: 1262.