gx10: deploy hardened MessageBoard web image
This commit is contained in:
@@ -49,7 +49,7 @@
|
||||
}
|
||||
}
|
||||
],
|
||||
"image": "localhost/fc-messageboard-web:gx10-v1",
|
||||
"image": "localhost/fc-messageboard-web:v20260617-sec5-messageboard-e5f77ef",
|
||||
"imagePullPolicy": "Never",
|
||||
"livenessProbe": {
|
||||
"failureThreshold": 3,
|
||||
@@ -95,14 +95,37 @@
|
||||
{
|
||||
"mountPath": "/data",
|
||||
"name": "data"
|
||||
},
|
||||
{
|
||||
"mountPath": "/app/logs",
|
||||
"name": "logs"
|
||||
},
|
||||
{
|
||||
"mountPath": "/tmp",
|
||||
"name": "tmp"
|
||||
}
|
||||
],
|
||||
"securityContext": {
|
||||
"allowPrivilegeEscalation": false,
|
||||
"capabilities": {
|
||||
"drop": [
|
||||
"ALL"
|
||||
]
|
||||
},
|
||||
"readOnlyRootFilesystem": true
|
||||
}
|
||||
}
|
||||
],
|
||||
"dnsPolicy": "ClusterFirst",
|
||||
"restartPolicy": "Always",
|
||||
"schedulerName": "default-scheduler",
|
||||
"securityContext": {},
|
||||
"securityContext": {
|
||||
"fsGroup": 1654,
|
||||
"fsGroupChangePolicy": "OnRootMismatch",
|
||||
"runAsGroup": 1654,
|
||||
"runAsNonRoot": true,
|
||||
"runAsUser": 1654
|
||||
},
|
||||
"terminationGracePeriodSeconds": 30,
|
||||
"volumes": [
|
||||
{
|
||||
@@ -110,6 +133,14 @@
|
||||
"persistentVolumeClaim": {
|
||||
"claimName": "messageboard-web-data"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "logs",
|
||||
"emptyDir": {}
|
||||
},
|
||||
{
|
||||
"name": "tmp",
|
||||
"emptyDir": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user