From a2a3fcfa3e3facbb7642712aa56702f4f32adeca Mon Sep 17 00:00:00 2001 From: James Date: Mon, 29 Apr 2024 17:19:47 -0700 Subject: [PATCH] adds mailing deployment --- infra/k8s/mailing-depl.yaml | 26 ++++++++++++++++++++++++++ skaffold.yaml | 8 ++++++++ 2 files changed, 34 insertions(+) create mode 100644 infra/k8s/mailing-depl.yaml diff --git a/infra/k8s/mailing-depl.yaml b/infra/k8s/mailing-depl.yaml new file mode 100644 index 0000000..6100eb8 --- /dev/null +++ b/infra/k8s/mailing-depl.yaml @@ -0,0 +1,26 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: mailing-depl +spec: + replicas: 1 + selector: + matchLabels: + app: mailing + template: + metadata: + labels: + app: mailing + spec: + containers: + - name: mailing + image: jamesgoytia/ticketing-mailing + env: + - name: NATS_CLIENT_ID + valueFrom: + fieldRef: + fieldPath: metadata.name + - name: NATS_URL + value: 'http://nats-srv:4222' + - name: NATS_CLUSTER_ID + value: ticketing diff --git a/skaffold.yaml b/skaffold.yaml index ca84721..5102d62 100644 --- a/skaffold.yaml +++ b/skaffold.yaml @@ -55,3 +55,11 @@ build: manual: - src: 'src/**/*.ts' dest: . + - image: jamesgoytia/ticketing-mailing + context: mailing + docker: + dockerfile: Dockerfile + sync: + manual: + - src: 'src/**/*.ts' + dest: .