-
Notifications
You must be signed in to change notification settings - Fork 3
/
00-demo-application.yml
57 lines (57 loc) · 1.04 KB
/
00-demo-application.yml
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
56
57
---
apiVersion: v1
kind: Namespace
metadata:
name: helloworld
spec: {}
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: hello-world
namespace: helloworld
labels:
app: hello-world
spec:
replicas: 3
selector:
matchLabels:
app: hello-world
template:
metadata:
labels:
app: hello-world
spec:
containers:
- name: helloworld
image: quay.io/redhatgov/rust-hello-world:0.1.3
ports:
- containerPort: 8000
securityContext:
allowPrivilegeEscalation: false
runAsNonRoot: true
capabilities:
drop:
- ALL
seccompProfile:
type: RuntimeDefault
resources:
requests:
memory: "64Mi"
cpu: "250m"
limits:
memory: "128Mi"
cpu: "500m"
---
apiVersion: v1
kind: Service
metadata:
name: hello-world
namespace: helloworld
spec:
ports:
- protocol: TCP
port: 8000
targetPort: 8000
selector:
app: hello-world