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