150 lines
3.9 KiB
JSON
150 lines
3.9 KiB
JSON
{
|
|
"apiVersion": "apps/v1",
|
|
"kind": "Deployment",
|
|
"metadata": {
|
|
"labels": {
|
|
"app": "messageboard-web"
|
|
},
|
|
"name": "messageboard-web",
|
|
"namespace": "fc-messageboard"
|
|
},
|
|
"spec": {
|
|
"progressDeadlineSeconds": 600,
|
|
"replicas": 1,
|
|
"revisionHistoryLimit": 10,
|
|
"selector": {
|
|
"matchLabels": {
|
|
"app": "messageboard-web"
|
|
}
|
|
},
|
|
"strategy": {
|
|
"type": "Recreate"
|
|
},
|
|
"template": {
|
|
"metadata": {
|
|
"annotations": {
|
|
"fc.flowercore.io/healthz-anon": "true",
|
|
"fc.flowercore.io/probe-path": "/health",
|
|
"prometheus.io/path": "/metrics/prometheus",
|
|
"prometheus.io/port": "8080",
|
|
"prometheus.io/scrape": "true"
|
|
},
|
|
"labels": {
|
|
"app": "messageboard-web"
|
|
}
|
|
},
|
|
"spec": {
|
|
"containers": [
|
|
{
|
|
"envFrom": [
|
|
{
|
|
"configMapRef": {
|
|
"name": "messageboard-web-config"
|
|
}
|
|
},
|
|
{
|
|
"secretRef": {
|
|
"name": "messageboard-web-secrets",
|
|
"optional": true
|
|
}
|
|
}
|
|
],
|
|
"image": "localhost/fc-messageboard-web:v20260617-sec5-messageboard-e5f77ef",
|
|
"imagePullPolicy": "Never",
|
|
"livenessProbe": {
|
|
"failureThreshold": 3,
|
|
"initialDelaySeconds": 10,
|
|
"periodSeconds": 30,
|
|
"successThreshold": 1,
|
|
"tcpSocket": {
|
|
"port": 8080
|
|
},
|
|
"timeoutSeconds": 5
|
|
},
|
|
"name": "messageboard-web",
|
|
"ports": [
|
|
{
|
|
"containerPort": 8080,
|
|
"name": "http",
|
|
"protocol": "TCP"
|
|
}
|
|
],
|
|
"readinessProbe": {
|
|
"failureThreshold": 6,
|
|
"initialDelaySeconds": 10,
|
|
"periodSeconds": 10,
|
|
"successThreshold": 1,
|
|
"tcpSocket": {
|
|
"port": 8080
|
|
},
|
|
"timeoutSeconds": 5
|
|
},
|
|
"resources": {
|
|
"limits": {
|
|
"cpu": "500m",
|
|
"memory": "512Mi"
|
|
},
|
|
"requests": {
|
|
"cpu": "100m",
|
|
"memory": "128Mi"
|
|
}
|
|
},
|
|
"terminationMessagePath": "/dev/termination-log",
|
|
"terminationMessagePolicy": "File",
|
|
"volumeMounts": [
|
|
{
|
|
"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": {
|
|
"fsGroup": 1654,
|
|
"fsGroupChangePolicy": "OnRootMismatch",
|
|
"runAsGroup": 1654,
|
|
"runAsNonRoot": true,
|
|
"runAsUser": 1654
|
|
},
|
|
"terminationGracePeriodSeconds": 30,
|
|
"volumes": [
|
|
{
|
|
"name": "data",
|
|
"persistentVolumeClaim": {
|
|
"claimName": "messageboard-web-data"
|
|
}
|
|
},
|
|
{
|
|
"name": "logs",
|
|
"emptyDir": {}
|
|
},
|
|
{
|
|
"name": "tmp",
|
|
"emptyDir": {}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|