Skip to content

Instantly share code, notes, and snippets.

View Cpriyanshi77's full-sized avatar

Priyanshi Chauhan Cpriyanshi77

View GitHub Profile
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: efk-stack
spec:
destination:
namespace: kube-logging
server: 'https://44FAE76C0259DAA41A67841B25E5A9C1.gr7.us-west-2.eks.amazonaws.com'
source:
path: efk-stack
@Cpriyanshi77
Cpriyanshi77 / test-pod.yaml
Created January 20, 2023 10:20
Verify Fluent-bit Deployment
apiVersion: v1
kind: Pod
metadata:
name: log-generator
spec:
containers:
- name: log-generator
image: busybox
command: ['sh', '-c', 'i=0; while true; do echo "$i: Log message"; i=$((i+1)); sleep 1; done']
@Cpriyanshi77
Cpriyanshi77 / fluent-bit-ds.yaml
Created January 20, 2023 10:19
Fluent-bit Daemonset
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: f-bit-pod
namespace: kube-logging
labels:
k8s-app: fluent-bit-logging
version: v1
kubernetes.io/cluster-service: "true"
spec:
@Cpriyanshi77
Cpriyanshi77 / fluent-bit-configmap.yaml
Created January 20, 2023 10:14
Fluent-bit ConfigMap
apiVersion: v1
kind: ConfigMap
metadata:
name: fluent-bit-config
namespace: kube-logging
labels:
k8s-app: f-bit-pod
data:
# Configuration files: server, input, filters and output
# ======================================================
@Cpriyanshi77
Cpriyanshi77 / fluent-bit-rb.yaml
Created January 20, 2023 10:13
Fluent-bit Role Binding
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: fluent-bit-rb
roleRef:
kind: ClusterRole
name: fluent-bit-role
apiGroup: rbac.authorization.k8s.io
subjects:
- kind: ServiceAccount
@Cpriyanshi77
Cpriyanshi77 / fluent-bit-role.yaml
Last active January 20, 2023 10:28
Fluent-bit ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: fluent-bit-role
labels:
app: fluent-bit-role
rules:
- nonResourceURLs:
- /metrics
verbs:
@Cpriyanshi77
Cpriyanshi77 / fluent-bit-sa.yaml
Created January 20, 2023 10:06
Fluent-bit Service Account
apiVersion: v1
kind: ServiceAccount
metadata:
name: fluent-bit-sa
namespace: kube-logging
labels:
app: fluent-bit-sa
@Cpriyanshi77
Cpriyanshi77 / kibana-deployment.yaml
Created January 20, 2023 10:03
Kibana Deployment
apiVersion: apps/v1
kind: Deployment
metadata:
name: kibana
namespace: kube-logging
labels:
app: kibana
spec:
replicas: 1
selector:
@Cpriyanshi77
Cpriyanshi77 / kibana-svc.yaml
Created January 20, 2023 10:02
Kibana Service
apiVersion: v1
kind: Service
metadata:
name: kibana
namespace: kube-logging
labels:
app: kibana
spec:
ports:
- port: 5601
@Cpriyanshi77
Cpriyanshi77 / es-sts.yaml
Created January 20, 2023 09:54
Elasticsearch StatefulSets
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: es-cluster
namespace: kube-logging
spec:
serviceName: elasticsearch
replicas: 3
selector:
matchLabels: