Skip to content

Instantly share code, notes, and snippets.

@jithin-scaria
jithin-scaria / eks-cluster-lab.yaml
Created May 17, 2022 03:29
eksctl configuration for a simple Amazon EKS cluster.
apiVersion: eksctl.io/v1alpha5
kind: ClusterConfig
metadata:
name: aws-lab # name Of the clutser we want to use.
region: ca-central-1 # Region in which cluster need to be created
nodeGroups:
- name: ng-1 # Node group Name
instanceType: t3.medium # EC2 instance Type. "t3.medium" or above is required.
@jithin-scaria
jithin-scaria / redis-config.yaml
Created May 18, 2022 23:57
Redis High availability with Sentinel on Kubernetes(K8s) configurations
apiVersion: v1
kind: ConfigMap
metadata:
name: redis-config
namespace: redis
data:
redis.conf: |
# Redis High availability with Sentinel on Kubernetes(K8s) configurations
# -----------------------------------------------------------------------
@jithin-scaria
jithin-scaria / redis.yaml
Created May 19, 2022 13:25
StatefulSet for Redis High Availability with sentinel
# StatefulSet for Redis High Availability with sentinel
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: redis
namespace: redis
spec:
serviceName: redis
replicas: 3
selector:
@jithin-scaria
jithin-scaria / sentinel.yaml
Created May 19, 2022 13:54
Sentinel StatefulSet : Redis High availability with Sentinel on Kubernetes(K8s)
# Sentinel StatefulSet : Redis High availability with Sentinel on Kubernetes(K8s)
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: sentinel
namespace: redis
spec:
serviceName: sentinel
replicas: 3
selector:
@jithin-scaria
jithin-scaria / redis-service.yaml
Last active May 19, 2022 14:20
Headless service for redis nodes in kubernetes. Used for both Redis cluster and High Availability solution with Sentinel
apiVersion: v1
kind: Service
metadata:
name: redis
namespace: redis
spec:
clusterIP: None # "None" make it a headless service. No cluster IP.
ports:
- port: 6379
targetPort: 6379
@jithin-scaria
jithin-scaria / sentinel-service.yaml
Created May 19, 2022 14:24
Service used for Sentinels for Redis High Availability Solution
apiVersion: v1
kind: Service
metadata:
name: sentinel
namespace: redis
spec:
clusterIP: None
ports:
- port: 5000
targetPort: 5000
@jithin-scaria
jithin-scaria / istio-base-values.yaml
Created May 26, 2022 17:21
Istio Base helm custom values configuration file
global:
# we are setting the CRD to be namespace scoped into `istio` namespace.
istioNamespace: istio
@jithin-scaria
jithin-scaria / istiod-values.yaml
Created May 26, 2022 17:37
istiod custom values yaml configuration for helm installation
global:
istioNamespace: istio
# to restrict apps to connect only to apps in the istio registry
outboundTrafficPolicy: REGISTRY_ONLY
meshConfig:
outboundTrafficPolicy:
# to restrict apps to connect only to apps in the istio registry
mode: REGISTRY_ONLY
rootNamespace: istio
@jithin-scaria
jithin-scaria / istio-ingress-values.yaml
Last active May 26, 2022 17:56
Istio ingress LoadBalancer service custom values configuration for helm installation
service:
# service type - Change if you are other
type: LoadBalancer
ports:
# configure the ports you need to connect. http/https
# An example of http is given
- name: http
port: 80
protocol: TCP
targetPort: 80
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
# this is name we use to connect from VirtualServices.
name: istio-in-gw
namespace: istio
spec:
selector:
# this is to connect the Service created. "Instio Ingress Service"
# this should match to connect the Service to gatway.