-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathk8s.yaml
53 lines (53 loc) · 1.33 KB
/
k8s.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
45
46
47
48
49
50
51
52
53
apiVersion: v1
kind: Service
metadata:
annotations:
service.beta.kubernetes.io/azure-load-balancer-internal: "true"
labels:
io.kompose.service: spring-boot-template-project
name: spring-boot-template-project
spec:
ports:
- name: "8080"
port: 8080
type: LoadBalancer
selector:
io.kompose.service: spring-boot-template-project
---
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
labels:
io.kompose.service: spring-boot-template-project
name: spring-boot-template-project
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
io.kompose.service: spring-boot-template-project
template:
metadata:
labels:
io.kompose.service: spring-boot-template-project
spec:
restartPolicy: Always
containers:
- image: fintlabsacr.azurecr.io/spring-boot-template-project:build.${BUILD_NUMBER}_${GIT_COMMIT}
name: spring-boot-template-project
resources:
limits:
memory: "512Mi"
cpu: "1"
requests:
memory: "128Mi"
cpu: "100m"
ports:
- containerPort: 8080
env:
- name: TZ
value: Europe/Oslo
- name: JAVA_TOOL_OPTIONS
value: '-XX:+ExitOnOutOfMemoryError -Xmx480M -verbose:gc'