215 lines
6.5 KiB
JSON
215 lines
6.5 KiB
JSON
{
|
|
"apiVersion": "apps/v1",
|
|
"kind": "Deployment",
|
|
"metadata": {
|
|
"labels": {
|
|
"app.kubernetes.io/component": "web",
|
|
"app.kubernetes.io/managed-by": "argocd",
|
|
"app.kubernetes.io/name": "worldbuilder-web",
|
|
"app.kubernetes.io/part-of": "flowercore",
|
|
"flowercore.io/created-by": "bluejay-infra",
|
|
"flowercore.io/tenant-id": "system"
|
|
},
|
|
"name": "worldbuilder-web",
|
|
"namespace": "fc-worldbuilder"
|
|
},
|
|
"spec": {
|
|
"progressDeadlineSeconds": 600,
|
|
"replicas": 1,
|
|
"revisionHistoryLimit": 3,
|
|
"selector": {
|
|
"matchLabels": {
|
|
"app.kubernetes.io/name": "worldbuilder-web"
|
|
}
|
|
},
|
|
"strategy": {
|
|
"type": "Recreate"
|
|
},
|
|
"template": {
|
|
"metadata": {
|
|
"annotations": {
|
|
"fc.flowercore.io/healthz-anon": "true",
|
|
"fc.flowercore.io/probe-path": "/healthz",
|
|
"flowercore.io/audit-trace-id": "worldbuilder-runtime-demo",
|
|
"prometheus.io/path": "/metrics/prometheus",
|
|
"prometheus.io/port": "8080",
|
|
"prometheus.io/scrape": "true"
|
|
},
|
|
"labels": {
|
|
"app.kubernetes.io/component": "web",
|
|
"app.kubernetes.io/managed-by": "argocd",
|
|
"app.kubernetes.io/name": "worldbuilder-web",
|
|
"app.kubernetes.io/part-of": "flowercore",
|
|
"flowercore.io/created-by": "bluejay-infra",
|
|
"flowercore.io/tenant-id": "system"
|
|
}
|
|
},
|
|
"spec": {
|
|
"containers": [
|
|
{
|
|
"env": [
|
|
{
|
|
"name": "ASPNETCORE_URLS",
|
|
"value": "http://+:8080"
|
|
},
|
|
{
|
|
"name": "ASPNETCORE_ENVIRONMENT",
|
|
"value": "Production"
|
|
},
|
|
{
|
|
"name": "DOTNET_RUNNING_IN_CONTAINER",
|
|
"value": "true"
|
|
},
|
|
{
|
|
"name": "DOTNET_SYSTEM_GLOBALIZATION_INVARIANT",
|
|
"value": "false"
|
|
},
|
|
{
|
|
"name": "ConnectionStrings__DefaultConnection",
|
|
"value": "Data Source=/data/worldbuilder.db"
|
|
},
|
|
{
|
|
"name": "FlowerCore__Database__Provider",
|
|
"value": "Sqlite"
|
|
},
|
|
{
|
|
"name": "FlowerCore__Database__ConnectionStrings__Sqlite",
|
|
"value": "Data Source=/data/worldbuilder.db"
|
|
},
|
|
{
|
|
"name": "FlowerCore__WorldBuilder__ImageStore__RootPath",
|
|
"value": "/data/gallery"
|
|
},
|
|
{
|
|
"name": "FlowerCore__WorldBuilder__Export__RootPath",
|
|
"value": "/data/exports"
|
|
},
|
|
{
|
|
"name": "FlowerCore__WorldBuilder__ImageGeneration__BaseUrl",
|
|
"value": "http://10.0.56.20:8188"
|
|
},
|
|
{
|
|
"name": "FlowerCore__WorldBuilder__ImageGeneration__ClientMode",
|
|
"value": "comfyui"
|
|
},
|
|
{
|
|
"name": "FlowerCore__WorldBuilder__ImageGeneration__BackendId",
|
|
"value": "comfyui"
|
|
},
|
|
{
|
|
"name": "FlowerCore__WorldBuilder__ImageGeneration__VisitorSafe",
|
|
"value": "false"
|
|
}
|
|
],
|
|
"image": "localhost/fc-worldbuilder:gx10-v1",
|
|
"imagePullPolicy": "Never",
|
|
"livenessProbe": {
|
|
"failureThreshold": 3,
|
|
"initialDelaySeconds": 30,
|
|
"periodSeconds": 30,
|
|
"successThreshold": 1,
|
|
"tcpSocket": {
|
|
"port": 8080
|
|
},
|
|
"timeoutSeconds": 1
|
|
},
|
|
"name": "web",
|
|
"ports": [
|
|
{
|
|
"containerPort": 8080,
|
|
"name": "http",
|
|
"protocol": "TCP"
|
|
}
|
|
],
|
|
"readinessProbe": {
|
|
"failureThreshold": 3,
|
|
"httpGet": {
|
|
"path": "/healthz",
|
|
"port": 8080,
|
|
"scheme": "HTTP"
|
|
},
|
|
"periodSeconds": 10,
|
|
"successThreshold": 1,
|
|
"timeoutSeconds": 1
|
|
},
|
|
"resources": {
|
|
"limits": {
|
|
"cpu": "1",
|
|
"memory": "768Mi"
|
|
},
|
|
"requests": {
|
|
"cpu": "25m",
|
|
"memory": "256Mi"
|
|
}
|
|
},
|
|
"securityContext": {
|
|
"allowPrivilegeEscalation": false,
|
|
"capabilities": {
|
|
"drop": [
|
|
"ALL"
|
|
]
|
|
},
|
|
"readOnlyRootFilesystem": true,
|
|
"runAsGroup": 1654,
|
|
"runAsNonRoot": true,
|
|
"runAsUser": 1654
|
|
},
|
|
"startupProbe": {
|
|
"failureThreshold": 30,
|
|
"httpGet": {
|
|
"path": "/healthz",
|
|
"port": 8080,
|
|
"scheme": "HTTP"
|
|
},
|
|
"initialDelaySeconds": 5,
|
|
"periodSeconds": 5,
|
|
"successThreshold": 1,
|
|
"timeoutSeconds": 1
|
|
},
|
|
"terminationMessagePath": "/dev/termination-log",
|
|
"terminationMessagePolicy": "File",
|
|
"volumeMounts": [
|
|
{
|
|
"mountPath": "/data",
|
|
"name": "data"
|
|
},
|
|
{
|
|
"mountPath": "/tmp",
|
|
"name": "tmp"
|
|
},
|
|
{
|
|
"mountPath": "/app/logs",
|
|
"name": "logs"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"dnsPolicy": "ClusterFirst",
|
|
"restartPolicy": "Always",
|
|
"schedulerName": "default-scheduler",
|
|
"securityContext": {
|
|
"fsGroup": 1654,
|
|
"fsGroupChangePolicy": "OnRootMismatch"
|
|
},
|
|
"terminationGracePeriodSeconds": 30,
|
|
"volumes": [
|
|
{
|
|
"name": "data",
|
|
"persistentVolumeClaim": {
|
|
"claimName": "worldbuilder-data"
|
|
}
|
|
},
|
|
{
|
|
"emptyDir": {},
|
|
"name": "tmp"
|
|
},
|
|
{
|
|
"emptyDir": {},
|
|
"name": "logs"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|