forked from ThoughtWorksInc/infra-problem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
quotes.yaml
55 lines (53 loc) · 952 Bytes
/
quotes.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
54
55
# all-services.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: quotes-deployment
spec:
replicas: 1
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
selector:
matchLabels:
app: quotes
template:
metadata:
labels:
app: quotes
spec:
containers:
- name: tw-app-q
image: docker.io/nivisco88/tw-app:manual
resources:
requests:
cpu: 100m
memory: 100Mi
limits:
cpu: 100m
memory: 100Mi
ports:
- containerPort: 8082
env:
- name: APP_PORT
value: "8082"
command:
- "java"
- "-jar"
- "build/quotes.jar"
---
apiVersion: v1
kind: Service
metadata:
name: quotes
spec:
selector:
app: quotes
ports:
- protocol: TCP
port: 8082
targetPort: 8082
type: ClusterIP
---