Skip to content

Instantly share code, notes, and snippets.

View Thakurvaibhav's full-sized avatar
✌️
Fight On!

Vaibhav Thakur Thakurvaibhav

✌️
Fight On!
View GitHub Profile
@Thakurvaibhav
Thakurvaibhav / configure-node.yml
Last active August 6, 2018 08:02
mongodb-k8s-hostvm-configure
kind: DaemonSet
apiVersion: extensions/v1beta1
metadata:
name: hostvm-configurer
labels:
app: startup-script
spec:
template:
metadata:
labels:
apiVersion: v1
kind: Namespace
metadata:
name: mongo
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: mongo
namespace: mongo
apiVersion: v1
kind: Service
metadata:
annotations:
cloud.google.com/load-balancer-type: Internal
name: mongo-0
namespace: mongo
spec:
ports:
-
@Thakurvaibhav
Thakurvaibhav / es-master.yml
Last active November 8, 2018 07:34
Elasticsearch Master Node Deployment and Headless Service
apiVersion: v1
kind: Namespace
metadata:
name: elasticsearch
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: es-master
namespace: elasticsearch
@Thakurvaibhav
Thakurvaibhav / es-data.yml
Created September 3, 2018 10:22
Elasticsearch Data Node Stateful Set and Headless Service
apiVersion: v1
kind: Namespace
metadata:
name: elasticsearch
---
apiVersion: storage.k8s.io/v1beta1
kind: StorageClass
metadata:
name: fast
provisioner: kubernetes.io/gce-pd
@Thakurvaibhav
Thakurvaibhav / es-client.yml
Last active September 28, 2019 19:47
Elasticsearch Client Node Deployment and External Service
apiVersion: v1
kind: Namespace
metadata:
name: elasticsearch
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: es-client
namespace: elasticsearch
apiVersion: v1
kind: Namespace
metadata:
name: elasticsearch
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: es-kibana
namespace: elasticsearch
apiVersion: v1
kind: Namespace
metadata:
name: elasticsearch
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: es-hq
namespace: elasticsearch
#All the environment variables are defined under Settings > CI/CD > Secret Variables section
image: docker:latest
variables:
DOCKER_DRIVER: overlay2
services:
- docker:dind
stages:
- build_dev
{
"containerDefinitions": [
{
"memory": 600,
"portMappings": [
{
"hostPort": 0,
"containerPort": 3000,
"protocol": "tcp"
},