Update elasticsearch and filebeat values
# See the License for the specific language governing permissions and
# limitations under the License.
+##################################################################################################
+# Gateway service
+##################################################################################################
+apiVersion: v1
+kind: Service
+metadata:
+ name: gateway
+spec:
+ ports:
+ - port: 6379
+ targetPort: 6379
+ protocol: TCP
+ nodePort: 32000
+ selector:
+ name: gateway
+ type: NodePort
+---
+
+apiVersion: v1
+kind: ReplicationController
+metadata:
+ name: gateway
+spec:
+ replicas: 1
+ template:
+ metadata:
+ labels:
+ name: gateway
+ spec:
+ containers:
+ - name: gateway
+ image: amalgam8/a8-sidecar:alpine
+ imagePullPolicy: IfNotPresent
+ ports:
+ - containerPort: 6379
+ args:
+ - /usr/bin/run_filebeat.sh
+ env:
+ - name: A8_PROXY
+ value: "true"
+ - name: A8_CONTROLLER_URL
+ value: http://$(CONTROLLER_SERVICE_HOST):$(CONTROLLER_SERVICE_PORT)
+ - name: A8_DISCOVERY_ADAPTER
+ value: kubernetes
+ - name: A8_SERVICE
+ value: gateway:none
+ - name: A8_ELASTICSEARCH_SERVER
+ value: $(LOGSERVER_SERVICE_HOST):9200
+ - name: A8_CONTROLLER_POLL
+ value: 5s
+---
+
##################################################################################################
# Details service
##################################################################################################
@@ -144,6 +196,8 @@ spec:
- name: serviceproxy
image: amalgam8/a8-sidecar:alpine
imagePullPolicy: IfNotPresent
+ args:
+ - /usr/bin/run_filebeat.sh
ports:
- containerPort: 6379
env:
@@ -182,6 +236,8 @@ spec:
- name: serviceproxy
image: amalgam8/a8-sidecar:alpine
imagePullPolicy: IfNotPresent
+ args:
+ - /usr/bin/run_filebeat.sh
ports:
- containerPort: 6379
env:
@@ -193,8 +249,8 @@ spec:
value: http://$(CONTROLLER_SERVICE_HOST):$(CONTROLLER_SERVICE_PORT)
- name: A8_CONTROLLER_POLL
value: 5s
- - name: A8_LOGSTASH_SERVER
- value: $(LOGSERVER_SERVICE_HOST):8092
+ - name: A8_ELASTICSEARCH_SERVER
+ value: $(LOGSERVER_SERVICE_HOST):9200
- name: A8_SERVICE
value: reviews:version=v3
---
@@ -237,6 +293,8 @@ spec:
- name: serviceproxy
image: amalgam8/a8-sidecar:alpine
imagePullPolicy: IfNotPresent
+ args:
+ - /usr/bin/run_filebeat.sh
ports:
- containerPort: 6379
env:
@@ -248,7 +306,7 @@ spec:
value: http://$(CONTROLLER_SERVICE_HOST):$(CONTROLLER_SERVICE_PORT)
- name: A8_CONTROLLER_POLL
value: 5s
- - name: A8_LOGSTASH_SERVER
- value: $(LOGSERVER_SERVICE_HOST):8092
+ - name: A8_ELASTICSEARCH_SERVER
+ value: $(LOGSERVER_SERVICE_HOST):9200
- name: A8_SERVICE
value: productpage:version=v1
