-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsigned-app.yaml
More file actions
59 lines (56 loc) · 1.31 KB
/
signed-app.yaml
File metadata and controls
59 lines (56 loc) · 1.31 KB
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
apiVersion: v1
kind: Pod
metadata:
name: signed-image-pod
labels:
app: signed-app
security: signed
annotations:
security.kyverno.io/verify-images: "true"
# security.kyverno.io/verify-slsa: "true"
# security.kyverno.io/verify-sbom: "true"
spec:
securityContext:
runAsNonRoot: true
runAsUser: 1000
runAsGroup: 3000
fsGroup: 3000
seccompProfile:
type: RuntimeDefault
containers:
- name: signed-container
image: ghcr.io/shivaswaroop40/containerimages/signed:sha-16589e8
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 1000
runAsGroup: 3000
resources:
requests:
cpu: 100m
memory: 128Mi
ephemeral-storage: 256Mi
limits:
cpu: 200m
memory: 256Mi
ephemeral-storage: 512Mi
ports:
- containerPort: 8080
livenessProbe:
httpGet:
path: /health
port: 8080
initialDelaySeconds: 30
periodSeconds: 10
readinessProbe:
httpGet:
path: /ready
port: 8080
initialDelaySeconds: 5
periodSeconds: 5
imagePullSecrets:
- name: ghcr-secret