forked from jasonumiker-sysdig/example-scenarios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hello-server.yaml
55 lines (55 loc) · 1 KB
/
hello-server.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
apiVersion: v1
kind: Namespace
metadata:
name: hello
---
kind: Service
apiVersion: v1
metadata:
labels:
app: hello-server
name: hello-server
namespace: hello
spec:
ports:
- port: 8080
protocol: TCP
targetPort: 8080
selector:
app: hello-server
sessionAffinity: None
type: ClusterIP
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: hello-server
name: hello-server
namespace: hello
spec:
replicas: 1
selector:
matchLabels:
app: hello-server
template:
metadata:
labels:
app: hello-server
spec:
automountServiceAccountToken: false
containers:
- image: public.ecr.aws/m9h2b5e7/hello-app:270723
name: hello-server
ports:
- containerPort: 8080
protocol: TCP
securityContext:
readOnlyRootFilesystem: true
resources:
requests:
memory: "256Mi"
cpu: "250m"
limits:
memory: "512Mi"
cpu: "500m"