Skip to content

Instantly share code, notes, and snippets.

View prasvats's full-sized avatar

Prashant Vats prasvats

View GitHub Profile
@prasvats
prasvats / elastic_kibana.sh
Created May 21, 2019 11:45
Install 3 Node HA ElasticSearch Cluster and Kibana. Version: 5.6.14
#Update apt repository
sudo apt-get update
# Download and install the public signing key
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
#Install apt repo sync
sudo apt-get install apt-transport-https
#Add elastic5.x to apt repository
echo "deb https://artifacts.elastic.co/packages/5.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-5.x.list
#Update apt repository
sudo apt-get update
@prasvats
prasvats / deploy.yaml
Created May 14, 2019 09:13
k8-pod-autoscalar
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole
metadata:
name: rabbit-pod-autoscaler
rules:
- apiGroups: ["*"]
resources: ["deployments"]
verbs: ["get", "list", "update"]
---