{ "apiVersion": "apps/v1", "kind": "Deployment", "metadata": { "labels": { "app.kubernetes.io/name": "scoreboard-web", "app.kubernetes.io/part-of": "flowercore" }, "name": "scoreboard-web", "namespace": "fc-scoreboard" }, "spec": { "progressDeadlineSeconds": 600, "replicas": 1, "revisionHistoryLimit": 10, "selector": { "matchLabels": { "app.kubernetes.io/name": "scoreboard-web" } }, "strategy": { "type": "Recreate" }, "template": { "metadata": { "annotations": { "kubectl.kubernetes.io/restartedAt": "2026-06-12T16:43:22-05:00", "prometheus.io/path": "/metrics/prometheus", "prometheus.io/port": "8080", "prometheus.io/scrape": "true" }, "labels": { "app.kubernetes.io/name": "scoreboard-web", "app.kubernetes.io/part-of": "flowercore" } }, "spec": { "containers": [ { "envFrom": [ { "configMapRef": { "name": "scoreboard-web-config" } } ], "image": "localhost/fc-scoreboard-web:gx10-v1", "imagePullPolicy": "Never", "livenessProbe": { "failureThreshold": 3, "initialDelaySeconds": 30, "periodSeconds": 30, "successThreshold": 1, "tcpSocket": { "port": 8080 }, "timeoutSeconds": 5 }, "name": "scoreboard-web", "ports": [ { "containerPort": 8080, "name": "http", "protocol": "TCP" } ], "readinessProbe": { "failureThreshold": 6, "initialDelaySeconds": 10, "periodSeconds": 10, "successThreshold": 1, "tcpSocket": { "port": 8080 }, "timeoutSeconds": 5 }, "resources": {}, "terminationMessagePath": "/dev/termination-log", "terminationMessagePolicy": "File", "volumeMounts": [ { "mountPath": "/data", "name": "data" } ] } ], "dnsPolicy": "ClusterFirst", "initContainers": [ { "command": [ "/bin/sh", "-c", "chown -R 1654:1654 /data && chmod -R u+rwX,g+rwX /data" ], "image": "localhost/fc-scoreboard-web:gx10-v1", "imagePullPolicy": "Never", "name": "scoreboard-data-permissions", "resources": {}, "securityContext": { "runAsGroup": 0, "runAsUser": 0 }, "terminationMessagePath": "/dev/termination-log", "terminationMessagePolicy": "File", "volumeMounts": [ { "mountPath": "/data", "name": "data" } ] } ], "restartPolicy": "Always", "schedulerName": "default-scheduler", "securityContext": { "fsGroup": 1654, "fsGroupChangePolicy": "OnRootMismatch" }, "terminationGracePeriodSeconds": 30, "volumes": [ { "name": "data", "persistentVolumeClaim": { "claimName": "scoreboard-web-data" } } ] } } } }