deploy(segmentdisplay): roll non-root GX10 image
This commit is contained in:
@@ -49,8 +49,8 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"image": "localhost/fc-segmentdisplay-web:gx10-v1",
|
"image": "localhost/fc-segmentdisplay-web:v20260617-sec5-segmentdisplay-7730fb2",
|
||||||
"imagePullPolicy": "Never",
|
"imagePullPolicy": "Never",
|
||||||
"livenessProbe": {
|
"livenessProbe": {
|
||||||
"failureThreshold": 3,
|
"failureThreshold": 3,
|
||||||
"httpGet": {
|
"httpGet": {
|
||||||
@@ -63,8 +63,8 @@
|
|||||||
"successThreshold": 1,
|
"successThreshold": 1,
|
||||||
"timeoutSeconds": 5
|
"timeoutSeconds": 5
|
||||||
},
|
},
|
||||||
"name": "segmentdisplay-web",
|
"name": "segmentdisplay-web",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 8080,
|
"containerPort": 8080,
|
||||||
"name": "http",
|
"name": "http",
|
||||||
@@ -83,31 +83,65 @@
|
|||||||
"successThreshold": 1,
|
"successThreshold": 1,
|
||||||
"timeoutSeconds": 5
|
"timeoutSeconds": 5
|
||||||
},
|
},
|
||||||
"resources": {},
|
"resources": {},
|
||||||
"terminationMessagePath": "/dev/termination-log",
|
"securityContext": {
|
||||||
"terminationMessagePolicy": "File",
|
"allowPrivilegeEscalation": false,
|
||||||
"volumeMounts": [
|
"capabilities": {
|
||||||
{
|
"drop": [
|
||||||
"mountPath": "/data",
|
"ALL"
|
||||||
"name": "data"
|
]
|
||||||
}
|
},
|
||||||
]
|
"readOnlyRootFilesystem": true,
|
||||||
}
|
"runAsGroup": 1654,
|
||||||
|
"runAsNonRoot": true,
|
||||||
|
"runAsUser": 1654
|
||||||
|
},
|
||||||
|
"terminationMessagePath": "/dev/termination-log",
|
||||||
|
"terminationMessagePolicy": "File",
|
||||||
|
"volumeMounts": [
|
||||||
|
{
|
||||||
|
"mountPath": "/data",
|
||||||
|
"name": "data"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"mountPath": "/tmp",
|
||||||
|
"name": "tmp"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"mountPath": "/app/logs",
|
||||||
|
"name": "logs"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
],
|
],
|
||||||
"dnsPolicy": "ClusterFirst",
|
"dnsPolicy": "ClusterFirst",
|
||||||
"restartPolicy": "Always",
|
"restartPolicy": "Always",
|
||||||
"schedulerName": "default-scheduler",
|
"schedulerName": "default-scheduler",
|
||||||
"securityContext": {},
|
"securityContext": {
|
||||||
|
"fsGroup": 1654,
|
||||||
|
"fsGroupChangePolicy": "OnRootMismatch",
|
||||||
|
"runAsGroup": 1654,
|
||||||
|
"runAsNonRoot": true,
|
||||||
|
"runAsUser": 1654
|
||||||
|
},
|
||||||
"terminationGracePeriodSeconds": 30,
|
"terminationGracePeriodSeconds": 30,
|
||||||
"volumes": [
|
"volumes": [
|
||||||
{
|
{
|
||||||
"name": "data",
|
"name": "data",
|
||||||
"persistentVolumeClaim": {
|
"persistentVolumeClaim": {
|
||||||
"claimName": "segmentdisplay-web-data"
|
"claimName": "segmentdisplay-web-data"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
]
|
{
|
||||||
}
|
"emptyDir": {},
|
||||||
|
"name": "tmp"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"emptyDir": {},
|
||||||
|
"name": "logs"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user