211 lines
6.2 KiB
JSON
211 lines
6.2 KiB
JSON
{
|
|
"apiVersion": "apps/v1",
|
|
"kind": "Deployment",
|
|
"metadata": {
|
|
"labels": {
|
|
"app": "fc-network-web",
|
|
"app.kubernetes.io/component": "web",
|
|
"app.kubernetes.io/managed-by": "argocd",
|
|
"app.kubernetes.io/name": "fc-network-web",
|
|
"app.kubernetes.io/part-of": "flowercore",
|
|
"flowercore.io/created-by": "bluejay-infra",
|
|
"flowercore.io/tenant-id": "system"
|
|
},
|
|
"name": "fc-network-web",
|
|
"namespace": "fc-network"
|
|
},
|
|
"spec": {
|
|
"progressDeadlineSeconds": 600,
|
|
"replicas": 1,
|
|
"revisionHistoryLimit": 3,
|
|
"selector": {
|
|
"matchLabels": {
|
|
"app": "fc-network-web"
|
|
}
|
|
},
|
|
"strategy": {
|
|
"rollingUpdate": {
|
|
"maxSurge": 0,
|
|
"maxUnavailable": 1
|
|
},
|
|
"type": "RollingUpdate"
|
|
},
|
|
"template": {
|
|
"metadata": {
|
|
"annotations": {
|
|
"fc.flowercore.io/healthz-anon": "true",
|
|
"fc.flowercore.io/probe-path": "/healthz",
|
|
"flowercore.io/audit-trace-id": "runtime-activity-trace",
|
|
"prometheus.io/path": "/metrics/prometheus",
|
|
"prometheus.io/port": "5340",
|
|
"prometheus.io/scrape": "true"
|
|
},
|
|
"labels": {
|
|
"app": "fc-network-web",
|
|
"app.kubernetes.io/component": "web",
|
|
"app.kubernetes.io/managed-by": "argocd",
|
|
"app.kubernetes.io/name": "fc-network-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://+:5340"
|
|
},
|
|
{
|
|
"name": "ASPNETCORE_ENVIRONMENT",
|
|
"value": "Production"
|
|
},
|
|
{
|
|
"name": "DOTNET_SYSTEM_GLOBALIZATION_INVARIANT",
|
|
"value": "false"
|
|
},
|
|
{
|
|
"name": "HOME",
|
|
"value": "/data"
|
|
},
|
|
{
|
|
"name": "FlowerCore__Auth__Enabled",
|
|
"value": "false"
|
|
},
|
|
{
|
|
"name": "FlowerCore__Database__Provider",
|
|
"value": "Sqlite"
|
|
},
|
|
{
|
|
"name": "FlowerCore__Database__ConnectionStrings__Sqlite",
|
|
"value": "Data Source=/data/network.db"
|
|
},
|
|
{
|
|
"name": "FlowerCore__Network__SnapshotStore__RootDirectory",
|
|
"value": "/data/snapshots"
|
|
},
|
|
{
|
|
"name": "FlowerCore__Network__SnapshotStore__UseGitHistory",
|
|
"value": "true"
|
|
},
|
|
{
|
|
"name": "FlowerCore__Network__IntendedModel__FilePath",
|
|
"value": "/data/intended.json"
|
|
}
|
|
],
|
|
"image": "localhost/fc-network-web:v20260617-sec5-network-e199147",
|
|
"imagePullPolicy": "Never",
|
|
"livenessProbe": {
|
|
"failureThreshold": 3,
|
|
"httpGet": {
|
|
"path": "/healthz",
|
|
"port": 5340,
|
|
"scheme": "HTTP"
|
|
},
|
|
"initialDelaySeconds": 30,
|
|
"periodSeconds": 30,
|
|
"successThreshold": 1,
|
|
"timeoutSeconds": 1
|
|
},
|
|
"name": "web",
|
|
"ports": [
|
|
{
|
|
"containerPort": 5340,
|
|
"name": "http",
|
|
"protocol": "TCP"
|
|
}
|
|
],
|
|
"readinessProbe": {
|
|
"failureThreshold": 3,
|
|
"httpGet": {
|
|
"path": "/healthz",
|
|
"port": 5340,
|
|
"scheme": "HTTP"
|
|
},
|
|
"periodSeconds": 10,
|
|
"successThreshold": 1,
|
|
"timeoutSeconds": 1
|
|
},
|
|
"resources": {
|
|
"limits": {
|
|
"cpu": "500m",
|
|
"memory": "512Mi"
|
|
},
|
|
"requests": {
|
|
"cpu": "50m",
|
|
"memory": "128Mi"
|
|
}
|
|
},
|
|
"securityContext": {
|
|
"allowPrivilegeEscalation": false,
|
|
"capabilities": {
|
|
"drop": [
|
|
"ALL"
|
|
]
|
|
},
|
|
"readOnlyRootFilesystem": true,
|
|
"runAsGroup": 1654,
|
|
"runAsNonRoot": true,
|
|
"runAsUser": 1654
|
|
},
|
|
"startupProbe": {
|
|
"failureThreshold": 30,
|
|
"httpGet": {
|
|
"path": "/healthz",
|
|
"port": 5340,
|
|
"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": "fc-network-web-data"
|
|
}
|
|
},
|
|
{
|
|
"emptyDir": {},
|
|
"name": "tmp"
|
|
},
|
|
{
|
|
"emptyDir": {},
|
|
"name": "logs"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|