From b2685f6ce32a232e36e11f51b807a67706071088 Mon Sep 17 00:00:00 2001 From: Edward Cheng Date: Wed, 28 Aug 2024 01:48:12 +1000 Subject: [PATCH] add eventbus example for argo events --- .../argo-events/base/examples/eventbus.yaml | 24 +++++++++++++++++++ .../argo-events/base/kustomization.yaml | 3 ++- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 infrastructures/argo-events/base/examples/eventbus.yaml diff --git a/infrastructures/argo-events/base/examples/eventbus.yaml b/infrastructures/argo-events/base/examples/eventbus.yaml new file mode 100644 index 0000000..55304d1 --- /dev/null +++ b/infrastructures/argo-events/base/examples/eventbus.yaml @@ -0,0 +1,24 @@ +apiVersion: argoproj.io/v1alpha1 +kind: EventBus +metadata: + name: default +spec: + nats: + native: + # Optional, defaults to 3. If it is < 3, set it to 3, that is the minimal requirement. + replicas: 3 + # Optional, authen strategy, "none" or "token", defaults to "none" + auth: token +# containerTemplate: +# resources: +# requests: +# cpu: "10m" +# metricsContainerTemplate: +# resources: +# requests: +# cpu: "10m" +# antiAffinity: false +# persistence: +# storageClassName: standard +# accessMode: ReadWriteOnce +# volumeSize: 10Gi \ No newline at end of file diff --git a/infrastructures/argo-events/base/kustomization.yaml b/infrastructures/argo-events/base/kustomization.yaml index 345521a..852339a 100644 --- a/infrastructures/argo-events/base/kustomization.yaml +++ b/infrastructures/argo-events/base/kustomization.yaml @@ -7,4 +7,5 @@ resources: - ./cluster-role-binding.yaml - ./configmap.yaml - ./deployment.yaml - - ./service.yaml \ No newline at end of file + - ./service.yaml + - ./examples/eventbus.yaml \ No newline at end of file