blob: b98baf484d338bacccf7dde3a704f339b7b528f0 [file] [log] [blame]
giolekva73d31262020-04-11 15:24:33 +04001apiVersion: argoproj.io/v1alpha1
2kind: Gateway
3metadata:
giolekvab0b7f002020-04-16 16:05:40 +04004 name: nats-gateway
giolekva73d31262020-04-11 15:24:33 +04005 labels:
6 # gateway controller with instanceId "argo-events" will process this gateway
7 gateways.argoproj.io/gateway-controller-instanceid: argo-events
8spec:
giolekvab0b7f002020-04-16 16:05:40 +04009 type: nats
giolekva73d31262020-04-11 15:24:33 +040010 eventSourceRef:
giolekvab0b7f002020-04-16 16:05:40 +040011 name: nats-event-source
giolekva73d31262020-04-11 15:24:33 +040012 template:
13 metadata:
giolekvab0b7f002020-04-16 16:05:40 +040014 name: nats-gateway
giolekva73d31262020-04-11 15:24:33 +040015 labels:
giolekvab0b7f002020-04-16 16:05:40 +040016 gateway-name: nats-gateway
giolekva73d31262020-04-11 15:24:33 +040017 spec:
18 containers:
19 - name: gateway-client
giolekvab0b7f002020-04-16 16:05:40 +040020 image: argoproj/gateway-client:v0.14.0
21 imagePullPolicy: IfNotPresent
giolekva73d31262020-04-11 15:24:33 +040022 command: ["/bin/gateway-client"]
giolekvab0b7f002020-04-16 16:05:40 +040023 - name: nats-events
24 image: argoproj/nats-gateway:v0.14.0
25 imagePullPolicy: IfNotPresent
26 command: ["/bin/nats-gateway"]
giolekva73d31262020-04-11 15:24:33 +040027 serviceAccountName: argo-events-sa
28 subscribers:
29 http:
giolekvab0b7f002020-04-16 16:05:40 +040030 - "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/"