212 lines
6.3 KiB
JSON
212 lines
6.3 KiB
JSON
{
|
|
"apiVersion": "apps/v1",
|
|
"kind": "Deployment",
|
|
"metadata": {
|
|
"labels": {
|
|
"app": "fc-devicemgmt-web",
|
|
"app.kubernetes.io/component": "web",
|
|
"app.kubernetes.io/managed-by": "argocd",
|
|
"app.kubernetes.io/name": "fc-devicemgmt-web",
|
|
"app.kubernetes.io/part-of": "flowercore",
|
|
"flowercore.io/created-by": "bluejay-infra",
|
|
"flowercore.io/tenant-id": "system"
|
|
},
|
|
"name": "fc-devicemgmt-web",
|
|
"namespace": "fc-devicemgmt"
|
|
},
|
|
"spec": {
|
|
"progressDeadlineSeconds": 600,
|
|
"replicas": 1,
|
|
"revisionHistoryLimit": 3,
|
|
"selector": {
|
|
"matchLabels": {
|
|
"app": "fc-devicemgmt-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",
|
|
"kubectl.kubernetes.io/restartedAt": "2026-05-20T11:29:46-05:00",
|
|
"operator.1password.io/last-restarted": "2026-05-20T16:29:03Z",
|
|
"prometheus.io/path": "/metrics",
|
|
"prometheus.io/port": "8080",
|
|
"prometheus.io/scrape": "true"
|
|
},
|
|
"labels": {
|
|
"app": "fc-devicemgmt-web",
|
|
"app.kubernetes.io/component": "web",
|
|
"app.kubernetes.io/managed-by": "argocd",
|
|
"app.kubernetes.io/name": "fc-devicemgmt-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_SYSTEM_GLOBALIZATION_INVARIANT",
|
|
"value": "false"
|
|
},
|
|
{
|
|
"name": "HOME",
|
|
"value": "/data"
|
|
},
|
|
{
|
|
"name": "FlowerCore__Service__Name",
|
|
"value": "FlowerCore.DeviceManagement.Web"
|
|
},
|
|
{
|
|
"name": "FlowerCore__DeviceManagement__DefaultTenantId",
|
|
"value": "system"
|
|
},
|
|
{
|
|
"name": "FlowerCore__Database__Provider",
|
|
"value": "Sqlite"
|
|
},
|
|
{
|
|
"name": "FlowerCore__Database__ConnectionStrings__Sqlite",
|
|
"value": "Data Source=/data/devicemgmt.db"
|
|
},
|
|
{
|
|
"name": "FlowerCore__Database__Password",
|
|
"valueFrom": {
|
|
"secretKeyRef": {
|
|
"key": "DB-Password",
|
|
"name": "fc-devicemgmt-runtime"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "FlowerCore__EventBus__Redis__Configuration",
|
|
"value": "redis.fc-redis.svc:6379"
|
|
}
|
|
],
|
|
"image": "localhost/fc-devicemgmt-web: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,
|
|
"periodSeconds": 10,
|
|
"successThreshold": 1,
|
|
"tcpSocket": {
|
|
"port": 8080
|
|
},
|
|
"timeoutSeconds": 1
|
|
},
|
|
"resources": {
|
|
"limits": {
|
|
"cpu": "1",
|
|
"memory": "768Mi"
|
|
},
|
|
"requests": {
|
|
"cpu": "100m",
|
|
"memory": "256Mi"
|
|
}
|
|
},
|
|
"securityContext": {
|
|
"allowPrivilegeEscalation": false,
|
|
"capabilities": {
|
|
"drop": [
|
|
"ALL"
|
|
]
|
|
},
|
|
"readOnlyRootFilesystem": true,
|
|
"runAsGroup": 1654,
|
|
"runAsNonRoot": true,
|
|
"runAsUser": 1654
|
|
},
|
|
"startupProbe": {
|
|
"failureThreshold": 30,
|
|
"initialDelaySeconds": 5,
|
|
"periodSeconds": 5,
|
|
"successThreshold": 1,
|
|
"tcpSocket": {
|
|
"port": 8080
|
|
},
|
|
"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-devicemgmt-web-data"
|
|
}
|
|
},
|
|
{
|
|
"emptyDir": {},
|
|
"name": "tmp"
|
|
},
|
|
{
|
|
"emptyDir": {},
|
|
"name": "logs"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|