mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-19 14:05:50 +00:00
Add files via upload
This commit is contained in:
parent
968d3a83f4
commit
f73844815f
1 changed files with 33 additions and 0 deletions
33
Docker-azure.yml
Normal file
33
Docker-azure.yml
Normal file
|
@ -0,0 +1,33 @@
|
|||
apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: mvnw-deployment
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: mvnw
|
||||
replicas: 5 # tells deployment to run 2 pods matching the template
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: mvnw
|
||||
spec:
|
||||
containers:
|
||||
- name: mvnw
|
||||
image: vladmitoc/petclinic-app:$(Build.BuildId)#
|
||||
ports:
|
||||
- containerPort: 80
|
||||
---
|
||||
# https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service
|
||||
kind: Service
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: mvnw-service
|
||||
spec:
|
||||
selector:
|
||||
app: mvnw
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 80
|
||||
targetPort: 80
|
||||
type: LoadBalancer
|
Loading…
Reference in a new issue