Skip to content

Instantly share code, notes, and snippets.

View masifpak's full-sized avatar

Muhammad Asif masifpak

View GitHub Profile
@masifpak
masifpak / gcloud-ssh-sysctl-vmmaxmapcount.sh
Created January 4, 2023 06:47 — forked from thbkrkr/gcloud-ssh-sysctl-vmmaxmapcount.sh
Set vm.max_map_count=262144 on the nodes of a GKE cluster #k8s
#!/bin/bash -eu
# Increase Virtual Memory for Elasticsearch on GKE
# https://www.elastic.co/guide/en/elasticsearch/reference/current/vm-max-map-count.html
# Dependencies: kubectl, gcloud, jq
nodes() {
kubectl get nodes -o custom-columns=n:.metadata.name --no-headers
}