From 47592c0689771bcb81db309fd3d21c59c5b2a56f Mon Sep 17 00:00:00 2001 From: Lee GunJun Date: Wed, 28 Sep 2022 23:16:13 +0900 Subject: [PATCH] test --- ticketing/infra/k8s/nats-depl.yaml | 49 ++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 ticketing/infra/k8s/nats-depl.yaml diff --git a/ticketing/infra/k8s/nats-depl.yaml b/ticketing/infra/k8s/nats-depl.yaml new file mode 100644 index 0000000..5a9d2e2 --- /dev/null +++ b/ticketing/infra/k8s/nats-depl.yaml @@ -0,0 +1,49 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: nats-depl +spec: + replicas: 1 + selector: + matchLabels: + apps: nats + template: + metadata: + labels: + app: nats + spec: + containers: + - name: nats + image: nats-streaming:0.17.0 + args: [ + '-p', + '4222', + '-m' + '8222', + '-hbi', + '5s', + '-hbt', + '5s', + '-hbf', + '2', + '-SD', + '-cid', + 'ticketing', + ] +--- +apiVersion: v1 +kind: Service +metadata: + name: nats-srv +spec: + selector: + app: nats + ports: + - name: client + protocol: TCP + prot: 4222 + targetPort: 4222 + - name: monitoring + protocol: TCP + port: 8222 + targetPort: 8222 \ No newline at end of file