-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDeployment
More file actions
44 lines (42 loc) · 1006 Bytes
/
Deployment
File metadata and controls
44 lines (42 loc) · 1006 Bytes
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: ninja25-deploy
labels:
app: frontend
env: dev
namespace: dev
annotations:
kubernetes.io/change-cause: "Updating the ninja batch image"
spec:
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
replicas: 10
selector:
matchLabels:
app: frontend
template:
metadata:
name: ninja25
namespace: dev
labels:
app: frontend
env: dev
spec:
containers:
- image: nginx:1.14.2
name: frontend
ports:
- name: http
containerPort: 80
protocol: TCP
resources:
requests:
memory: "64Mi"
cpu: "250m"
limits:
memory: "128Mi"
cpu: "500m"