-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeployment.yaml
47 lines (47 loc) · 1.12 KB
/
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
43
44
45
46
47
apiVersion: apps/v1
kind: Deployment
metadata:
name: appDeployment-appA
annotations:
seccomp.security.alpha.kubernetes.io/pod: "runtime/default"
labels:
app: appA
spec:
automountServiceAccountToken: false #FG_R00484
replicas: 3
selector:
matchLabels:
app: nginx
securityContext:
runAsNonRoot: true
template:
metadata:
labels:
app: nginx
annotations:
seccomp.security.alpha.kubernetes.io/pod: "runtime/default"
spec:
automountServiceAccountToken: false #FG_R00484
containers:
- name: nginx
image: nginx:1.14.2
securityContext:
runAsNonRoot: true #FG_R00490
capabilities:
drop: ["ALL"]
ports:
- containerPort: 80
- name: rss-reader
image: busybox
securityContext:
runAsNonRoot: true #FG_R00490
capabilities:
drop: ["ALL"]
ports:
- containerPort: 88
volumes:
- name: test-volume
# This AWS EBS volume must already exist.
awsElasticBlockStore:
volumeID: "abc-123"
fsType: ext4