Categories
Kubernetes

Kubernetes: Install Grafana and Prometheus on GKE using helm

Updated: September 23, 2020 https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack Add Repo helm repo add prometheus-community https://prometheus-community.github.io/helm-charts helm repo add stable https://kubernetes-charts.storage.googleapis.com/ helm repo update Create custom-values.yaml GKE uses kubeDNS by default, so I enabled it. I created persistent disks and added an Internal Load Balancer by adding a google specific annotation. cat <<EOF > custom-values.yaml coreDns: enabled: false kubeDns: […]

Categories
General Kubernetes

Kubernetes: Sealed Secrets

Why use Sealed Secrets? Sealed Secrets provides a mechanism to encrypt a Secret object so that it is safe to store in a private or public repository. https://github.com/bitnami-labs/sealed-secrets How it works Sealed Secrets comprises the following components A controller deployed to cluster A CLI tool called kubeseal A custom resource definition (CRD) called SealedSecret Upon startup, […]

Categories
Kubernetes

Kubernetes: Install Bitnami Elasticsearch & Kibana using Helm

https://github.com/bitnami/charts/tree/master/bitnami/elasticsearch What is it? Elasticsearch Elasticsearch is a distributed, open source search and analytics engine for all types of data, including textual, numerical, geospatial, structured, and unstructured. Kabana Kibana is a free and open user interface that lets you visualize your Elasticsearch data and navigate the Elastic Stack. Repo Add repo. helm repo add bitnami […]

Categories
Kubernetes

Kubernetes: Install Istio using Istioctl

General https://istio.io/docs/setup/install/istioctl/ Install istioctl client Option 1 brew install istioctl Option 2 Download the latest Istio version from GitHub. curl -L https://istio.io/downloadIstio | sh – cd istio-1.6.1 sudo cp ./bin/istioctl /usr/local/bin/istioctl sudo chmod +x /usr/local/bin/istioctl Optional Enable command-line completion within zshrc. { mkdir -p ~/completions && istioctl collateral –zsh -o ~/completions source ~/completions/_istioctl echo “source […]

Categories
Kubernetes

Kubernetes: Istio Locality Based Load Balancing

Cluster Create a Regional cluster with 3 zones (1 node per zone). List the nodes and labels. We need this to understand which node belongs to which zone. kubectl get nodes –label-columns failure-domain.beta.kubernetes.io/region,failure-domain.beta.kubernetes.io/zone NAME STATUS ROLES AGE VERSION REGION ZONE gke-itsmetommy-default-pool-5ba92622-dbgg Ready <none> 11m v1.16.8-gke.15 us-west1 us-west1-c gke-itsmetommy-default-pool-65c4a9e0-g4l0 Ready <none> 11m v1.16.8-gke.15 us-west1 us-west1-b gke-itsmetommy-default-pool-fee8f05c-3ghq […]