blob: b98baf484d338bacccf7dde3a704f339b7b528f0 [file] [log] [blame]
giolekva892a4e22020-04-27 16:46:22 +04001apiVersion: argoproj.io/v1alpha1
2kind: Gateway
3metadata:
4 name: nats-gateway
5 labels:
6 # gateway controller with instanceId "argo-events" will process this gateway
7 gateways.argoproj.io/gateway-controller-instanceid: argo-events
8spec:
9 type: nats
10 eventSourceRef:
11 name: nats-event-source
12 template:
13 metadata:
14 name: nats-gateway
15 labels:
16 gateway-name: nats-gateway
17 spec:
18 containers:
19 - name: gateway-client
20 image: argoproj/gateway-client:v0.14.0
21 imagePullPolicy: IfNotPresent
22 command: ["/bin/gateway-client"]
23 - name: nats-events
24 image: argoproj/nats-gateway:v0.14.0
25 imagePullPolicy: IfNotPresent
26 command: ["/bin/nats-gateway"]
27 serviceAccountName: argo-events-sa
28 subscribers:
29 http:
30 - "http://nats-sensor.svc:9300/"
31
32
33# apiVersion: argoproj.io/v1alpha1
34# kind: Gateway
35# metadata:
36# name: minio-gateway
37# labels:
38# # gateway controller with instanceId "argo-events" will process this gateway
39# gateways.argoproj.io/gateway-controller-instanceid: argo-events
40# spec:
41# type: minio
42# eventSourceRef:
43# name: minio-event-source
44# template:
45# metadata:
46# name: minio-gateway
47# labels:
48# gateway-name: minio-gateway
49# spec:
50# containers:
51# - name: gateway-client
52# image: argoproj/gateway-client:v0.13.0
53# imagePullPolicy: Always
54# command: ["/bin/gateway-client"]
55# - name: minio-events
56# image: argoproj/artifact-gateway:v0.13.0
57# imagePullPolicy: Always
58# serviceAccountName: argo-events-sa
59# subscribers:
60# http:
61# - "http://minio-sensor.kube-system.svc:9300/"