From 838440505670d838dc743f9d0442519b5cb5fc71 Mon Sep 17 00:00:00 2001 From: Finta Gabor Date: Wed, 24 Mar 2021 10:59:04 +0100 Subject: [PATCH] Add carts service Signed-off-by: Finta Gabor --- sock-shop/base/carts-svc.yaml | 14 ++++++++++++++ sock-shop/kustomization.yaml | 1 + 2 files changed, 15 insertions(+) create mode 100644 sock-shop/base/carts-svc.yaml diff --git a/sock-shop/base/carts-svc.yaml b/sock-shop/base/carts-svc.yaml new file mode 100644 index 0000000..7a00163 --- /dev/null +++ b/sock-shop/base/carts-svc.yaml @@ -0,0 +1,14 @@ +--- +apiVersion: v1 +kind: Service +metadata: + name: carts + labels: + name: carts +spec: + ports: + # the port that this service should serve on + - port: 80 + targetPort: 80 + selector: + name: carts \ No newline at end of file diff --git a/sock-shop/kustomization.yaml b/sock-shop/kustomization.yaml index bcc3578..5f88a66 100644 --- a/sock-shop/kustomization.yaml +++ b/sock-shop/kustomization.yaml @@ -2,6 +2,7 @@ resources: - base/carts-db-dep.yaml - base/carts-db-svc.yaml - base/carts-dep.yaml +- base/carts-svc.yaml - base/catalogue-db-dep.yaml - base/catalogue-db-svc.yaml - base/catalogue-dep.yaml