Skip to content

Instantly share code, notes, and snippets.

View matiasah's full-sized avatar

Matías Hermosilla matiasah

View GitHub Profile
@matiasah
matiasah / install-jenkins.md
Last active July 8, 2023 23:06
Install Jenkins

Install Jenkins

Add Jenkins Helm repository

Run the following commands to setup the Jenkins Helm chart.

helm repo add jenkins https://charts.jenkins.io
helm repo update

Install Jenkins

Run the following command to install Jenkins.

@matiasah
matiasah / deploy-vault-with-istio.md
Last active July 3, 2023 03:44
Deploy HashiCorp Vault with Istio Ingress enabled

Add Helm Repository

Add HashiCorp to your Helm repositories.

helm repo add hashicorp https://helm.releases.hashicorp.com

Deploy Vault

Option 1: Virtual Service (Preferred)

Modify and run the following command:

@matiasah
matiasah / image-registry-kubernetes.md
Last active June 6, 2023 03:03
Configure a Container Image Registry with Kubernetes
  1. To authenticate to the private registry
docker login registry.gitlab.com
  1. Create the docker authentication credential as a Kubernetes secret (regcred)
kubectl create secret generic regcred \
    --from-file=.dockerconfigjson=$HOME/.docker/config.json \
    --type=kubernetes.io/dockerconfigjson \
@matiasah
matiasah / envoyfilter.yaml
Created January 23, 2023 01:36
Istio EnvoyFilter to inject Google API credentials to outgoing requests
apiVersion: networking.istio.io/v1alpha3
kind: EnvoyFilter
metadata:
name: google-auth-filter
spec:
workloadSelector:
labels:
app: my-service
configPatches:
- applyTo: HTTP_FILTER
@matiasah
matiasah / install-prometheus.md
Last active January 2, 2023 15:49
Install Prometheus

Install Prometheus

Install Helm Chart

Install the Prometheus Helm Charts locally.

helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo update

Deploy Prometheus

Deploy Prometheus without mounting root volume.

@matiasah
matiasah / cert-manager-install.md
Last active January 1, 2023 22:04
Install Cert Manager

Installing Cert Manager

Install Helm Chart

Add repository

helm repo add jetstack https://charts.jetstack.io
helm repo update

Install Cert Manager

@matiasah
matiasah / datadog-java-apm-tracer.md
Created December 5, 2022 17:39
Integrating DataDog with Java APM/Tracer

Requirements

  • DataDog Cluster agent installed.
  • Admission Controller enabled.
  • Admission Controller working in service mode.

Modify your deployment

apiVersion: apps/v1
kind: Deployment
metadata:
@matiasah
matiasah / datadog-cluster-agent.md
Last active December 5, 2022 17:31
Install DataDog Cluster agent

Setup Firewall Rule

Make sure that your cluster's network segment has connectivity enabled toward itself using the following ports:

TCP 8000 (bidirectional) - for DataDog Admission Controller
TCP 8125 (bidirectional) - for DataDog dogstatd

Add Helm repo

helm repo add datadog https://helm.datadoghq.com
@matiasah
matiasah / datadog-synthetics-private-location.md
Created December 5, 2022 17:29
Install DataDog Synthetics Private Location.md

Add Helm repo

helm repo add datadog https://helm.datadoghq.com
helm repo update

Create namespace

kubectl create namespace datadog
@matiasah
matiasah / configmap.md
Last active April 13, 2022 17:58
How to apply a ConfigMap from a file, that may or may not exist

How to apply a ConfigMap from a file, when the ConfigMap may or may not exist

Will run kubectl create to generate the manifest, and kubectl apply to create it if it didn't exist or update it if it already existed.

kubectl create configmap <name-of-configmap> --from-file=<name-of-key>=<name-of-file> --namespace=<namespace> -o yaml --dry-run=client | kubectl apply -f -