mirror of
https://github.com/wahyd4/home-docker.git
synced 2026-08-25 04:05:49 +10:00
update es
This commit is contained in:
@@ -185,7 +185,8 @@ k apply -f es.yaml
|
||||
|
||||
# fluent bit
|
||||
helm repo add fluent https://fluent.github.io/helm-charts
|
||||
helm upgrade --install fluent-bit fluent/fluent-bit -f fluentbit-values.yaml
|
||||
|
||||
helm upgrade --install fluent-bit fluent/fluent-bit -f fluentbit-values.yaml -n es
|
||||
|
||||
# code server https://code.junv.me
|
||||
|
||||
@@ -212,3 +213,9 @@ db.createUser(
|
||||
# crawlab
|
||||
|
||||
k apply -f crawlab.yaml -n crawlab
|
||||
|
||||
# secuirty
|
||||
|
||||
kubectl create namespace security
|
||||
|
||||
kubectl apply -f https://raw.githubusercontent.com/aquasecurity/kube-bench/main/job.yaml -n security
|
||||
|
||||
@@ -15,9 +15,15 @@ spec:
|
||||
app: elasticsearch
|
||||
name: elasticsearch
|
||||
spec:
|
||||
initContainers:
|
||||
- name: increase-vm-max-map
|
||||
image: busybox
|
||||
command: ["sysctl", "-w", "vm.max_map_count=262144"]
|
||||
securityContext:
|
||||
privileged: true
|
||||
containers:
|
||||
- name: elasticsearch
|
||||
image: docker.elastic.co/elasticsearch/elasticsearch:7.13.2
|
||||
image: docker.elastic.co/elasticsearch/elasticsearch:8.0.1
|
||||
imagePullPolicy: IfNotPresent
|
||||
ports:
|
||||
- containerPort: 9200
|
||||
@@ -29,6 +35,8 @@ spec:
|
||||
env:
|
||||
- name: discovery.type
|
||||
value: single-node
|
||||
- name: xpack.security.enabled
|
||||
value: "false"
|
||||
volumeMounts:
|
||||
- name: es
|
||||
mountPath: /usr/share/elasticsearch/data
|
||||
@@ -80,10 +88,10 @@ metadata:
|
||||
spec:
|
||||
tls:
|
||||
- hosts:
|
||||
- elasticsearch.junv.me
|
||||
- es.junv.me
|
||||
secretName: elasticsearch-tls
|
||||
rules:
|
||||
- host: elasticsearch.junv.me
|
||||
- host: es.junv.me
|
||||
http:
|
||||
paths:
|
||||
- backend:
|
||||
@@ -115,7 +123,7 @@ spec:
|
||||
spec:
|
||||
containers:
|
||||
- name: kibana
|
||||
image: docker.elastic.co/kibana/kibana:7.13.2
|
||||
image: docker.elastic.co/kibana/kibana:8.0.1
|
||||
imagePullPolicy: IfNotPresent
|
||||
ports:
|
||||
- containerPort: 5601
|
||||
|
||||
@@ -215,8 +215,9 @@ config:
|
||||
Match kube.*
|
||||
Host elasticsearch.es.svc.cluster.local
|
||||
Port 9200
|
||||
# Logstash_Format On
|
||||
# Logstash_Prefix kube
|
||||
Logstash_Format On
|
||||
Logstash_Prefix kube
|
||||
Logstash_DateFormat %Y-%m
|
||||
Retry_Limit 20
|
||||
Buffer_Size 64KB
|
||||
Trace_Error On
|
||||
@@ -228,6 +229,7 @@ config:
|
||||
Port 9200
|
||||
Logstash_Format On
|
||||
Logstash_Prefix node
|
||||
Logstash_DateFormat %Y-%m
|
||||
Retry_Limit 20
|
||||
Replace_Dots On
|
||||
|
||||
|
||||
Reference in New Issue
Block a user