forked from XeniaP/Trend-Micro-CS-Demo-Image
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeployExample.yml
More file actions
50 lines (49 loc) · 961 Bytes
/
deployExample.yml
File metadata and controls
50 lines (49 loc) · 961 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
45
46
47
48
49
50
apiVersion: apps/v1
kind: Deployment
metadata:
name: demo-app
spec:
replicas: 1
selector:
matchLabels:
app: demo-app
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
minReadySeconds: 5
template:
metadata:
labels:
app: demo-app
spec:
nodeSelector:
"beta.kubernetes.io/os": linux
containers:
- name: demo-app
image: 043424211101.dkr.ecr.us-east-2.amazonaws.com/rep_lab:latest
ports:
- containerPort: 8080
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 250m
memory: 256Mi
---
apiVersion: v1
kind: Service
metadata:
name: demo-app
labels:
app: demo-app
spec:
selector:
app: demo-app
version: blue
type: NodePort
ports:
- nodePort: 31113
port: 8080
targetPort: 8080