-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdeployment.yaml
42 lines (42 loc) · 959 Bytes
/
deployment.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: broken-app-deploy
labels:
app: broken-app
spec:
replicas: 0
selector:
matchLabels:
app: broken-app
template:
metadata:
labels:
app: broken-app
spec:
securityContext:
runAsUser: 11000
runAsGroup: 11000
fsGroup: 11000
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
containers:
- name: broken-app
image: quay.io/onzack/nginx-hostname-demo:1.0.0
resources:
requests:
memory: "16Mi"
cpu: "10m"
limits:
memory: "64Mi"
cpu: "50m"
ephemeral-storage: "500Mi"
securityContext:
privileged: false
readOnlyRootFilesystem: true
capabilities:
drop:
- ALL
ports:
- containerPort: 8080