mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-27 01:45:49 +00:00
Create spc.yaml
Added k8s manifest
This commit is contained in:
parent
d9da7cdc82
commit
9bd720e232
1 changed files with 45 additions and 0 deletions
45
spc.yaml
Normal file
45
spc.yaml
Normal file
|
@ -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
|
Loading…
Reference in a new issue