pulsar-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mme...@apache.org
Subject [pulsar] branch master updated: add eks broker proxy (#3167)
Date Wed, 12 Dec 2018 18:41:44 GMT
This is an automated email from the ASF dual-hosted git repository.

mmerli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/master by this push:
     new 04df219  add eks broker proxy (#3167)
04df219 is described below

commit 04df219af4b050f038cc6f81727b44a09b1a4083
Author: Tenzin Wangdhen <sinzin91@gmail.com>
AuthorDate: Wed Dec 12 10:41:39 2018 -0800

    add eks broker proxy (#3167)
---
 deployment/kubernetes/aws/proxy.yaml | 85 ++++++++++++++++++++++++++++++++++++
 1 file changed, 85 insertions(+)

diff --git a/deployment/kubernetes/aws/proxy.yaml b/deployment/kubernetes/aws/proxy.yaml
new file mode 100644
index 0000000..7825a5c
--- /dev/null
+++ b/deployment/kubernetes/aws/proxy.yaml
@@ -0,0 +1,85 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+apiVersion: v1
+kind: ConfigMap
+metadata:
+  name: pulsar-proxy-config
+data:
+  PULSAR_MEM: "\" -Xms4g -Xmx4g -XX:MaxDirectMemorySize=4g\""
+  brokerServiceURL: pulsar://broker:6650
+  brokerWebServiceURL: http://broker:8080
+  clusterName: pulsar-eks
+
+---
+apiVersion: apps/v1beta1
+kind: Deployment
+metadata:
+  name: broker-proxy
+  labels:
+    app: pulsar
+    component: proxy
+spec:
+  replicas: 3
+  template:
+    metadata:
+      labels:
+        app: pulsar
+        component: proxy
+      annotations:
+        prometheus.io/scrape: "true"
+        prometheus.io/port: "8080"
+    spec:
+      containers:
+        - name: pulsar-proxy
+          image: apachepulsar/pulsar:latest
+          command: ["sh", "-c"]
+          args:
+            - >
+              bin/apply-config-from-env.py conf/proxy.conf &&
+              bin/apply-config-from-env.py conf/pulsar_env.sh &&
+              bin/pulsar proxy
+          ports:
+            - containerPort: 6650
+            - containerPort: 8080
+          envFrom:
+            - configMapRef:
+                name: pulsar-proxy-config
+---
+
+apiVersion: v1
+kind: Service
+metadata:
+  name: broker-proxy
+  labels:
+    app: pulsar
+    component: proxy
+spec:
+  type: LoadBalancer
+  ports:
+    - name: pulsar
+      port: 6650
+      protocol: TCP
+    - name: http
+      port: 8080
+      protocol: TCP
+  selector:
+    app: pulsar
+    component: broker
+


Mime
View raw message