mirror of
https://github.com/stackrox/kube-linter-action.git
synced 2026-09-03 21:59:21 +00:00
Update action (refactorings) (#5)
This commit is contained in:
Executable
+45
@@ -0,0 +1,45 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: compliant
|
||||
namespace: my-namespace
|
||||
annotations:
|
||||
team: database
|
||||
spec:
|
||||
replicas: 1
|
||||
minReadySeconds: 15
|
||||
selector:
|
||||
matchLabels:
|
||||
app: compliant
|
||||
strategy:
|
||||
type: Recreate
|
||||
template:
|
||||
metadata:
|
||||
namespace: my-namespace
|
||||
labels:
|
||||
app: compliant
|
||||
spec:
|
||||
serviceAccountName: my-service-account
|
||||
containers:
|
||||
- image: nginx:latest
|
||||
name: nginx
|
||||
securityContext:
|
||||
runAsNonRoot: true
|
||||
readOnlyRootFilesystem: true
|
||||
resources:
|
||||
requests:
|
||||
memory: "1Gi"
|
||||
cpu: "1"
|
||||
limits:
|
||||
memory: "4Gi"
|
||||
cpu: "2"
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: my-service-account
|
||||
namespace: my-namespace
|
||||
labels:
|
||||
app.kubernetes.io/name: my-app
|
||||
annotations:
|
||||
team: database
|
||||
Reference in New Issue
Block a user