Categories
gcp Kubernetes

Kubernetes: Install Grafana & Prometheus on GKE using Helm Bitnami

Install Grafana https://github.com/bitnami/charts/tree/master/bitnami/grafana Create namespace kubectl create ns monitoring Add repo helm repo add bitnami https://charts.bitnami.com/bitnami Update repo helm repo update View version helm search repo -l bitnami/grafana | head Create custom_values.yaml https://github.com/bitnami/charts/blob/master/bitnami/grafana/values.yaml I added an annotation because I wanted an internal IP for the Load Balancer. Feel free to remove that section. vi custom_values.yaml […]

Categories
gcp Kubernetes

Install Halyard & Spinnaker on GKE

Create IAM Service Account https://www.spinnaker.io/setup/quickstart/halyard-gke-deploy-rbac/#part-2-add-service-account-to-gcp Spinnaker will use this IAM Service Account to access Google Cloud Storage (GCS) (storage.admin). export SERVICE_ACCOUNT_NAME=spinnaker-itsmetommy-saexport SERVICE_ACCOUNT_FILE=spinnaker-itsmetommy-sa.json export SERVICE_ACCOUNT_DISPLAY_NAME=”Spinnaker Account”export PROJECT=$(gcloud info –format=’value(config.project)’)gcloud –project ${PROJECT} iam service-accounts create \ ${SERVICE_ACCOUNT_NAME} \ –display-name ${SERVICE_ACCOUNT_DISPLAY_NAME} sleep 10 SA_EMAIL=$(gcloud iam service-accounts list \ –project=${PROJECT} \ –filter=”email ~ ${SERVICE_ACCOUNT_NAME}” \ –format=’value(email)’)gcloud –project ${PROJECT} projects […]

Categories
gcp JFrog Kubernetes

Kubernetes: Migrate Local Storage to Google Cloud Storage Bucket

I ran into an issue where having a local disk wasn’t the best solution and decided it was time to migrate to a Google Cloud Storage Bucket. This particular situation has to do with Artifactory where I was using a PersistentVolume (gcePersistentDisk) and now wanted to use a storage bucket (the right way). I had […]

Categories
Kubernetes

Kubernetes: Install Grafana & Prometheus on GKE using Helm kube-prometheus-stack

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 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: enabled: true prometheusOperator: createCustomResource: false alertmanager: alertmanagerSpec: storage: volumeClaimTemplate: […]

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, […]