From 9bd720e23221f54acd31a7fbaed296152309c987 Mon Sep 17 00:00:00 2001 From: "SHAIK.SOHAIL" <121076079+shaiksohail11@users.noreply.github.com> Date: Wed, 15 Mar 2023 15:51:57 +0530 Subject: [PATCH] Create spc.yaml Added k8s manifest --- spc.yaml | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 spc.yaml diff --git a/spc.yaml b/spc.yaml new file mode 100644 index 000000000..ca797fe02 --- /dev/null +++ b/spc.yaml @@ -0,0 +1,45 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: spc + labels: + app: spring +spec: + replicas: 2 + selector: + matchLabels: + app: spring + strategy: + type: RollingUpdate + rollingUpdate: + maxUnavailable: 25% + maxSurge: 1 + template: + metadata: + name: spc-pod + labels: + app: spring + spec: + containers: + - name: spring-petclinic + image: shaik1128/spring-petclinic:3.0 + ports: + - containerPort: 8080 + name: spc-port + protocol: TCP + +--- +apiVersion: v1 +kind: Service +metadata: + name: spc-svc + labels: + app: spring +spec: + type: LoadBalancer + selector: + app: spring + ports: + - port: 8080 + protocol: TCP