first upload
This commit is contained in:
30
apps/apache-demo/deployment.yaml
Normal file
30
apps/apache-demo/deployment.yaml
Normal file
@@ -0,0 +1,30 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: apache-demo
|
||||
namespace: secure
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: apache-demo
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: apache-demo
|
||||
spec:
|
||||
securityContext:
|
||||
runAsNonRoot: true
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
containers:
|
||||
- name: apache-demo
|
||||
image: pub.msandor.hu/msandor/apache-demo:latest
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
protocol: TCP
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop: ["ALL"]
|
||||
restartPolicy: Always
|
Reference in New Issue
Block a user