forked from opstree/spring3hibernate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy-machine.yaml
44 lines (44 loc) · 906 Bytes
/
deploy-machine.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
apiVersion: apps/v1
kind: Deployment
metadata:
name: spring3hibernateapp-deployment
annotations:
latest: __image__
labels:
app: spring3hibernate-app
type: spring-boot
spec:
template:
metadata:
name: spring3hibernateapp-pod
labels:
app: spring3hibernate-app
type: spring-boot
spec:
imagePullSecrets:
- name: image-secrets
containers:
- name: spring3hibernateapp-container
image: gspann.azurecr.io/springapp:latest
imagePullPolicy: Always
#ports:
#- containerPort: 80
replicas: 3
selector:
matchLabels:
app: spring3hibernate-app
type: spring-boot
---
kind: Service
apiVersion: v1
metadata:
name: spring3hibernateapp-service
spec:
selector:
app: spring3hibernate-app
type: spring-boot
ports:
- protocol: TCP
port: 80
targetPort: 80
type: LoadBalancer