diff --git a/kubernetes/productcatalogue-service.yaml b/kubernetes/productcatalogue-service.yaml index f229e37..546339b 100644 --- a/kubernetes/productcatalogue-service.yaml +++ b/kubernetes/productcatalogue-service.yaml @@ -15,28 +15,3 @@ spec: name: http --- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: productcatalogue -spec: - selector: - matchLabels: - app: productcatalogue - replicas: 1 - template: - metadata: - labels: - app: productcatalogue - spec: - containers: - - name: productcatalogue - image: taniaduggal60/productcatalogue1:latest - ports: - - containerPort: 8020 - livenessProbe: - httpGet: - path: /healthcheck - port: 8025 - initialDelaySeconds: 30 - timeoutSeconds: 1 diff --git a/kubernetes/productcataloguedeploy.yaml b/kubernetes/productcataloguedeploy.yaml new file mode 100644 index 0000000..7cf191e --- /dev/null +++ b/kubernetes/productcataloguedeploy.yaml @@ -0,0 +1,25 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: productcatalogue +spec: + selector: + matchLabels: + app: productcatalogue + replicas: 2 + template: + metadata: + labels: + app: productcatalogue + spec: + containers: + - name: productcatalogue + image: taniaduggal60/productcatalogue1:latest + ports: + - containerPort: 8020 + livenessProbe: + httpGet: + path: /healthcheck + port: 8025 + initialDelaySeconds: 30 + timeoutSeconds: 1 diff --git a/kubernetes/shopfront-service.yaml b/kubernetes/shopfront-service.yaml index fec0628..ea2b264 100644 --- a/kubernetes/shopfront-service.yaml +++ b/kubernetes/shopfront-service.yaml @@ -15,28 +15,3 @@ spec: name: http --- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: shopfront -spec: - selector: - matchLabels: - app: shopfront - replicas: 1 - template: - metadata: - labels: - app: shopfront - spec: - containers: - - name: shopfront - image: taniaduggal60/shopfront:latest - ports: - - containerPort: 8010 - livenessProbe: - httpGet: - path: /health - port: 8010 - initialDelaySeconds: 30 - timeoutSeconds: 1 diff --git a/kubernetes/shopfrontdeploy.yaml b/kubernetes/shopfrontdeploy.yaml new file mode 100644 index 0000000..fc34bfe --- /dev/null +++ b/kubernetes/shopfrontdeploy.yaml @@ -0,0 +1,25 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: shopfront +spec: + selector: + matchLabels: + app: shopfront + replicas: 1 + template: + metadata: + labels: + app: shopfront + spec: + containers: + - name: shopfront + image: taniaduggal60/shopfront:latest + ports: + - containerPort: 8010 + livenessProbe: + httpGet: + path: /health + port: 8010 + initialDelaySeconds: 30 + timeoutSeconds: 1 diff --git a/kubernetes/stockmanager-service.yaml b/kubernetes/stockmanager-service.yaml index c3e97b1..14692a3 100644 --- a/kubernetes/stockmanager-service.yaml +++ b/kubernetes/stockmanager-service.yaml @@ -15,28 +15,3 @@ spec: name: http --- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: stockmanager -spec: - selector: - matchLabels: - app: stockmanager - replicas: 1 - template: - metadata: - labels: - app: stockmanager - spec: - containers: - - name: stockmanager - image: taniaduggal60/stockmanager:latest - ports: - - containerPort: 8030 - livenessProbe: - httpGet: - path: /health - port: 8030 - initialDelaySeconds: 30 - timeoutSeconds: 1 diff --git a/kubernetes/stockmanagerdeploy.yaml b/kubernetes/stockmanagerdeploy.yaml new file mode 100644 index 0000000..b35a5d0 --- /dev/null +++ b/kubernetes/stockmanagerdeploy.yaml @@ -0,0 +1,25 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: stockmanager +spec: + selector: + matchLabels: + app: stockmanager + replicas: 1 + template: + metadata: + labels: + app: stockmanager + spec: + containers: + - name: stockmanager + image: taniaduggal60/stockmanager:latest + ports: + - containerPort: 8030 + livenessProbe: + httpGet: + path: /health + port: 8030 + initialDelaySeconds: 30 + timeoutSeconds: 1