update
This commit is contained in:
parent
683a4b84a4
commit
c6dd35484d
@ -32,6 +32,15 @@ spec:
|
||||
secretKeyRef:
|
||||
name: elasticsearch-secret
|
||||
key: elastic_password
|
||||
- name: ES_JAVA_OPTS
|
||||
value: "-Xms2g -Xmx2g" # 设置 JVM 堆大小为 2GB
|
||||
resources: # 增加资源限制
|
||||
requests:
|
||||
memory: "2Gi"
|
||||
cpu: "1"
|
||||
limits:
|
||||
memory: "4Gi"
|
||||
cpu: "2"
|
||||
volumeMounts:
|
||||
- name: data-volume
|
||||
mountPath: /usr/share/elasticsearch/data
|
||||
|
10
efk/init.sh
10
efk/init.sh
@ -1,3 +1,10 @@
|
||||
|
||||
|
||||
cd /home/ubuntu/k8sCongfigs/traefik
|
||||
microk8s.kubectl apply -f traefik_role.yaml
|
||||
microk8s.kubectl apply -f traefik_role.yaml
|
||||
microk8s.kubectl apply -f traefik_roleBind.yaml
|
||||
|
||||
cd /home/ubuntu/k8sCongfigs/efk
|
||||
sudo su
|
||||
// 准备 es 配置
|
||||
@ -14,6 +21,7 @@ microk8s.kubectl apply -f elasticsearch-service.yaml
|
||||
// 这个时候正在创建elasticsearch的pod,需要拉取镜像,大概1个多小时,如果有离线的直接导入离线的镜像
|
||||
sleep 3600
|
||||
./createSecure_passwd_forES.sh
|
||||
./createFluentdAccoutnIn.sh
|
||||
|
||||
microk8s.kubectl apply -f fluentd-configMap.yaml
|
||||
microk8s.kubectl apply -f fluentd-daemonset.yaml
|
||||
@ -25,6 +33,8 @@ microk8s.kubectl apply -f kibana-deployment.yaml
|
||||
microk8s.kubectl apply -f kibana-ingress.yaml
|
||||
microk8s.kubectl apply -f kibana-service.yaml
|
||||
|
||||
./refreshTokenForKibana.sh
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -30,4 +30,4 @@ spec:
|
||||
- name: XPACK_REPORTING_ENCRYPTIONKEY
|
||||
value: "yet_another_secure_random_string_of_32_characters"
|
||||
- name: ELASTICSEARCH_SERVICEACCOUNTTOKEN
|
||||
value: "AAEAAWVsYXN0aWMva2liYW5hL215LXRva2VuOlZycER6YktPU2Qtb0xXM1hHQ2ZtUnc"
|
||||
value: "AAEAAWVsYXN0aWMva2liYW5hL215LXRva2VuOmlnZWdqMGp5UWI2ODVaZzZaMElVVmc"
|
||||
|
Loading…
x
Reference in New Issue
Block a user