mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-16 04:45:49 +00:00
Compare commits
1 commit
f23aa04562
...
2f3a85b3a3
Author | SHA1 | Date | |
---|---|---|---|
![]() |
2f3a85b3a3 |
2 changed files with 37 additions and 0 deletions
22
deployment.yaml
Normal file
22
deployment.yaml
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: spring-boot-app
|
||||||
|
namespace: petclinic
|
||||||
|
spec:
|
||||||
|
replicas: 2
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: spring-boot-app
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: spring-boot-app
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: spring-boot-app
|
||||||
|
image: docker.io/mmarcetic/main:2.0
|
||||||
|
imagePullPolicy: Always
|
||||||
|
ports:
|
||||||
|
- containerPort: 8080
|
||||||
|
|
15
service.yaml
Normal file
15
service.yaml
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: spring-boot-app-service
|
||||||
|
namespace: petclinic
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: spring-boot-app
|
||||||
|
ports:
|
||||||
|
- protocol: TCP
|
||||||
|
port: 80
|
||||||
|
targetPort: 8080
|
||||||
|
nodePort: 30950
|
||||||
|
type: NodePort
|
||||||
|
|
Loading…
Reference in a new issue