Skip to content

Instantly share code, notes, and snippets.

View amulyamalla's full-sized avatar
🎯
Focusing

Amulya Malla amulyamalla

🎯
Focusing
View GitHub Profile
@amulyamalla
amulyamalla / Mac-OS-Setup.md
Created March 19, 2025 18:01 — forked from prashant0085/Mac-OS-Setup.md
Mac OS setup for DevOps Engineer

Update Mac to latest version

Update your Mac to latest version of macOS.

Install Mac Xcode Command Line Tools

xcode-select --install
# Split all objects and pass them to each filter below
# Create/Delete Namespace
(select(.verb == "create" and .objectRef.resource=="namespaces") |
"[" + .stageTimestamp + "] " + "Namespace Created: name=" + .objectRef.name),
(select(.verb == "delete" and .objectRef.resource=="namespaces") |
"[" + .stageTimestamp + "] " + "Namespace Deleted: name=" + .objectRef.name),
# Create/Delete Deployment
@amulyamalla
amulyamalla / haproxy.config
Created March 27, 2020 19:01 — forked from hzbd/haproxy.config
Sample HAProxy config with logging.
global
pidfile /var/run/haproxy.pid
log 127.0.0.1 local0 info
ulimit-n 65536
defaults
mode http
clitimeout 600000 # maximum inactivity time on the client side
srvtimeout 600000 # maximum inactivity time on the server side
@amulyamalla
amulyamalla / create-kube-user.sh
Created August 27, 2019 20:28 — forked from henning/create-kube-user.sh
create k8s user, certificate, permissions and client config
#!/bin/bash
CLUSTERNAME=mycluster.mydomain
NAMESPACE=default
USERNAME=myclusteruser
GROUPNAME=mygroup
openssl genrsa -out ${USERNAME}.key 2048
CSR_FILE=$USERNAME.csr
@amulyamalla
amulyamalla / change_docker_root_folder.txt
Created July 1, 2019 10:37 — forked from jokla/change_docker_root_folder.txt
Change Docker root folder Ubuntu 14.04 and Ubuntu 16.04
$ sudo service docker stop
$ gksudo gedit /etc/default/docker
# Use DOCKER_OPTS to modify the daemon startup options.
DOCKER_OPTS="--dns 8.8.8.8 --dns 8.8.4.4 -g /home/jokla/docker/docker/"
$ sudo service docker start
UBUNTU 16.04
@amulyamalla
amulyamalla / kibana.json
Created June 12, 2019 13:08 — forked from carlosedp/kibana.json
Kibana Dashboards and Visualizations
[
{
"_id": "74ad2b40-3774-11e8-8bf5-0529df825f82",
"_type": "visualization",
"_source": {
"title": "Amount Errors",
"visState": "{\"title\":\"Amount Errors\",\"type\":\"metric\",\"params\":{\"addLegend\":false,\"addTooltip\":true,\"metric\":{\"colorSchema\":\"Green to Red\",\"colorsRange\":[{\"from\":0,\"to\":10000}],\"invertColors\":false,\"labels\":{\"show\":true},\"metricColorMode\":\"None\",\"percentageMode\":false,\"style\":{\"bgColor\":false,\"bgFill\":\"#000\",\"fontSize\":60,\"labelColor\":false,\"subText\":\"\"},\"useRanges\":false},\"type\":\"metric\"},\"aggs\":[{\"id\":\"1\",\"enabled\":true,\"type\":\"count\",\"schema\":\"metric\",\"params\":{\"customLabel\":\"\"}},{\"id\":\"3\",\"enabled\":true,\"type\":\"filters\",\"schema\":\"group\",\"params\":{\"filters\":[{\"input\":{\"query\":\"log: Traceback OR log: error\"},\"label\":\"Error Log Entries\"}]}}]}",
"uiStateJSON": "{}",
"description": "",
"version": 1,
@amulyamalla
amulyamalla / docker-compose.yml
Created May 14, 2019 18:53 — forked from tebeka/docker-compose.yml
HAProxy in front of Elasticsearch
elastic:
image: elasticsearch
haproxy:
image: haproxy
volumes:
- ${PWD}:/usr/local/etc/haproxy
links:
- elastic
ports:
@amulyamalla
amulyamalla / Install Kubespray Centos 7.sh
Last active September 25, 2019 07:59 — forked from akhfa/Install Kubespray Centos 7.sh
Steps to install Kubespray
# Env Preparation
yum install -y epel-release git
git clone https://github.com/kubernetes-incubator/kubespray
yum -y install https://centos7.iuscommunity.org/ius-release.rpm
yum -y install python36u
yum install -y python-pip
OR
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py
pip install -r requirements.txt

install the ELK stack on an ubuntu-x64 machine on Azure

This guide has been revised 06-03-2015. Start with a clean ubuntu 14.04LTS-x64 machine and get it updated

sudo su
apt-get update && apt-get dist-upgrade
reboot
##################### ElasticSearch Configuration Example #####################
# This file contains an overview of various configuration settings,
# targeted at operations staff. Application developers should
# consult the guide at <http://elasticsearch.org/guide>.
#
# The installation procedure is covered at
# <http://elasticsearch.org/guide/en/elasticsearch/reference/current/setup.html>.
#
# ElasticSearch comes with reasonable defaults for most settings,