Deploy Media SEC-5 non-root image to GX10
This commit is contained in:
@@ -92,7 +92,7 @@
|
||||
}
|
||||
}
|
||||
],
|
||||
"image": "localhost/fc-media-web:gx10-v1",
|
||||
"image": "localhost/fc-media-web:v20260617-sec5-media-f9228d2",
|
||||
"imagePullPolicy": "Never",
|
||||
"livenessProbe": {
|
||||
"failureThreshold": 3,
|
||||
@@ -148,6 +148,15 @@
|
||||
"memory": "1Gi"
|
||||
}
|
||||
},
|
||||
"securityContext": {
|
||||
"allowPrivilegeEscalation": false,
|
||||
"capabilities": {
|
||||
"drop": [
|
||||
"ALL"
|
||||
]
|
||||
},
|
||||
"readOnlyRootFilesystem": true
|
||||
},
|
||||
"startupProbe": {
|
||||
"failureThreshold": 18,
|
||||
"httpGet": {
|
||||
@@ -190,6 +199,14 @@
|
||||
{
|
||||
"mountPath": "/media/inbox",
|
||||
"name": "media-inbox"
|
||||
},
|
||||
{
|
||||
"mountPath": "/tmp",
|
||||
"name": "temp"
|
||||
},
|
||||
{
|
||||
"mountPath": "/app/logs",
|
||||
"name": "logs"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -197,7 +214,13 @@
|
||||
"dnsPolicy": "ClusterFirst",
|
||||
"restartPolicy": "Always",
|
||||
"schedulerName": "default-scheduler",
|
||||
"securityContext": {},
|
||||
"securityContext": {
|
||||
"fsGroup": 1654,
|
||||
"fsGroupChangePolicy": "OnRootMismatch",
|
||||
"runAsGroup": 1654,
|
||||
"runAsNonRoot": true,
|
||||
"runAsUser": 1654
|
||||
},
|
||||
"terminationGracePeriodSeconds": 30,
|
||||
"volumes": [
|
||||
{
|
||||
@@ -234,6 +257,14 @@
|
||||
"readOnly": true,
|
||||
"server": "10.0.58.3"
|
||||
}
|
||||
},
|
||||
{
|
||||
"emptyDir": {},
|
||||
"name": "temp"
|
||||
},
|
||||
{
|
||||
"emptyDir": {},
|
||||
"name": "logs"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user