Skip to content

Commit

Permalink
fix: kyverno test workload
Browse files Browse the repository at this point in the history
  • Loading branch information
nataliagranato committed Feb 16, 2024
1 parent 819afa3 commit 571d6cb
Show file tree
Hide file tree
Showing 7 changed files with 60 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.vscode
6 changes: 6 additions & 0 deletions resources/add-label-namespace.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: v1
kind: Namespace
metadata:
name: meu-namespace
labels:
ns: "granato"
14 changes: 14 additions & 0 deletions resources/disallow-root-user.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: v1
kind: Pod
metadata:
name: non-root-pod
spec:
containers:
- name: non-root-container
image: nginx
securityContext:
runAsNonRoot: true
resources:
limits:
cpu: "1"
memory: "512Mi"
Empty file.
12 changes: 12 additions & 0 deletions resources/registry-allowed.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: v1
kind: Pod
metadata:
name: trusted-pod
spec:
containers:
- name: trusted-container
image: trustedrepo.com/my-image
resources:
limits:
cpu: "1"
memory: "1Gi"
12 changes: 12 additions & 0 deletions resources/require-resources-limits-exclude.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: v1
kind: Pod
metadata:
name: limited-resources-pod
spec:
containers:
- name: limited-resources-container
image: nginx
resources:
limits:
cpu: "1"
memory: "500Mi"
15 changes: 15 additions & 0 deletions resources/require-resources-limits.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: v1
kind: Pod
metadata:
name: requests-limits-pod
spec:
containers:
- name: requests-limits-container
image: nginx
resources:
requests:
cpu: "500m"
memory: "256Mi"
limits:
cpu: "500m"
memory: "1Gi"

0 comments on commit 571d6cb

Please sign in to comment.