Pārlūkot izejas kodu

fix elasticsearch error

Your Name 6 gadi atpakaļ
vecāks
revīzija
54a9ec7c16

+ 4 - 4
k8s-efk/es-ss.yaml

@@ -59,7 +59,7 @@ metadata:
     addonmanager.kubernetes.io/mode: Reconcile
 spec:
   serviceName: elasticsearch-logging
-  replicas: 2
+  replicas: 3
   selector:
     matchLabels:
       k8s-app: elasticsearch-logging
@@ -73,7 +73,7 @@ spec:
     spec:
       serviceAccountName: elasticsearch-logging
       containers:
-      - image: k8s.gcr.io/elasticsearch:v5.6.4 
+      - image: dotbalo/elasticsearch:v5.6.4 
         name: elasticsearch-logging
         resources:
           # need more cpu upon initialization, therefore burstable class
@@ -109,8 +109,8 @@ spec:
   - metadata:
       name: elasticsearch-logging
     spec:
-      accessModes: [ "ReadWriteMany" ]
+      accessModes: [ "ReadWriteOnce" ]
       storageClassName: "es-storage-class"
       resources:
         requests:
-          storage: 4Gi
+          storage: 10Gi

+ 4 - 4
k8s-efk/es0-pv.yaml

@@ -4,14 +4,14 @@ metadata:
   name: pv-es-0
 spec:
   capacity:
-    storage: 4Gi
+    storage: 10Gi
   accessModes:
-    - ReadWriteMany
+    - ReadWriteOnce
   volumeMode: Filesystem
   persistentVolumeReclaimPolicy: Recycle
   storageClassName: "es-storage-class"
   nfs:
     # real share directory
-    path: /nfs/es/es0
+    path: /k8s-data/es/es0
     # nfs real ip
-    server: 192.168.2.2
+    server: 10.120.116.240

+ 4 - 4
k8s-efk/es1-pv.yaml

@@ -4,14 +4,14 @@ metadata:
   name: pv-es-1
 spec:
   capacity:
-    storage: 4Gi
+    storage: 10Gi
   accessModes:
-    - ReadWriteMany
+    - ReadWriteOnce
   volumeMode: Filesystem
   persistentVolumeReclaimPolicy: Recycle
   storageClassName: "es-storage-class"
   nfs:
     # real share directory
-    path: /nfs/es/es1
+    path: /k8s-data/es/es1
     # nfs real ip
-    server: 192.168.2.2
+    server: 10.120.116.240

+ 4 - 4
k8s-efk/es2-pv.yaml

@@ -4,14 +4,14 @@ metadata:
   name: pv-es-2
 spec:
   capacity:
-    storage: 4Gi
+    storage: 10Gi
   accessModes:
-    - ReadWriteMany
+    - ReadWriteOnce
   volumeMode: Filesystem
   persistentVolumeReclaimPolicy: Recycle
   storageClassName: "es-storage-class"
   nfs:
     # real share directory
-    path: /nfs/es/es2
+    path: /k8s-data/es/es2
     # nfs real ip
-    server: 192.168.2.2
+    server: 10.120.116.240

+ 1 - 1
k8s-efk/fluentd-es-ds.yaml

@@ -76,7 +76,7 @@ spec:
       serviceAccountName: fluentd-es
       containers:
       - name: fluentd-es
-        image: k8s.gcr.io/fluentd-elasticsearch:v2.0.4
+        image: dotbalo/fluentd-elasticsearch:v2.0.4
         env:
         - name: FLUENTD_ARGS
           value: --no-supervisor -q

+ 1 - 1
k8s-efk/kibana-deployment.yaml

@@ -19,7 +19,7 @@ spec:
     spec:
       containers:
       - name: kibana-logging
-        image: docker.elastic.co/kibana/kibana:5.6.4
+        image: kibana:5.6.4
         resources:
           # need more cpu upon initialization, therefore burstable class
           limits: