148 lines
4.2 KiB
JSON
148 lines
4.2 KiB
JSON
{
|
|
"apiVersion": "apps/v1",
|
|
"kind": "Deployment",
|
|
"metadata": {
|
|
"labels": {
|
|
"app.kubernetes.io/component": "operator",
|
|
"app.kubernetes.io/instance": "mysql-operator",
|
|
"app.kubernetes.io/managed-by": "flowercore",
|
|
"app.kubernetes.io/name": "mysql-operator",
|
|
"app.kubernetes.io/part-of": "flowercore-mysql"
|
|
},
|
|
"name": "mysql-operator",
|
|
"namespace": "fc-system"
|
|
},
|
|
"spec": {
|
|
"progressDeadlineSeconds": 600,
|
|
"replicas": 1,
|
|
"revisionHistoryLimit": 10,
|
|
"selector": {
|
|
"matchLabels": {
|
|
"app.kubernetes.io/instance": "mysql-operator",
|
|
"app.kubernetes.io/name": "mysql-operator"
|
|
}
|
|
},
|
|
"strategy": {
|
|
"rollingUpdate": {
|
|
"maxSurge": "25%",
|
|
"maxUnavailable": "25%"
|
|
},
|
|
"type": "RollingUpdate"
|
|
},
|
|
"template": {
|
|
"metadata": {
|
|
"annotations": {
|
|
"kubectl.kubernetes.io/restartedAt": "2026-04-17T09:34:39-05:00"
|
|
},
|
|
"labels": {
|
|
"app.kubernetes.io/component": "operator",
|
|
"app.kubernetes.io/instance": "mysql-operator",
|
|
"app.kubernetes.io/managed-by": "flowercore",
|
|
"app.kubernetes.io/name": "mysql-operator",
|
|
"app.kubernetes.io/part-of": "flowercore-mysql"
|
|
}
|
|
},
|
|
"spec": {
|
|
"automountServiceAccountToken": true,
|
|
"containers": [
|
|
{
|
|
"env": [
|
|
{
|
|
"name": "ASPNETCORE_ENVIRONMENT",
|
|
"value": "Production"
|
|
},
|
|
{
|
|
"name": "ASPNETCORE_URLS",
|
|
"value": "http://+:8080"
|
|
}
|
|
],
|
|
"image": "localhost/fc-mysql-operator:v20260617-sec5-3c6649c",
|
|
"imagePullPolicy": "Never",
|
|
"livenessProbe": {
|
|
"failureThreshold": 3,
|
|
"httpGet": {
|
|
"path": "/healthz",
|
|
"port": 8080,
|
|
"scheme": "HTTP"
|
|
},
|
|
"initialDelaySeconds": 15,
|
|
"periodSeconds": 20,
|
|
"successThreshold": 1,
|
|
"timeoutSeconds": 3
|
|
},
|
|
"name": "mysql-operator",
|
|
"ports": [
|
|
{
|
|
"containerPort": 8080,
|
|
"name": "http",
|
|
"protocol": "TCP"
|
|
}
|
|
],
|
|
"readinessProbe": {
|
|
"failureThreshold": 3,
|
|
"httpGet": {
|
|
"path": "/healthz",
|
|
"port": 8080,
|
|
"scheme": "HTTP"
|
|
},
|
|
"initialDelaySeconds": 5,
|
|
"periodSeconds": 10,
|
|
"successThreshold": 1,
|
|
"timeoutSeconds": 3
|
|
},
|
|
"resources": {
|
|
"limits": {
|
|
"cpu": "500m",
|
|
"memory": "512Mi"
|
|
},
|
|
"requests": {
|
|
"cpu": "250m",
|
|
"memory": "256Mi"
|
|
}
|
|
},
|
|
"securityContext": {
|
|
"allowPrivilegeEscalation": false,
|
|
"capabilities": {
|
|
"drop": [
|
|
"ALL"
|
|
]
|
|
},
|
|
"readOnlyRootFilesystem": true
|
|
},
|
|
"terminationMessagePath": "/dev/termination-log",
|
|
"terminationMessagePolicy": "File",
|
|
"volumeMounts": [
|
|
{
|
|
"mountPath": "/tmp",
|
|
"name": "tmp"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"dnsPolicy": "ClusterFirst",
|
|
"restartPolicy": "Always",
|
|
"schedulerName": "default-scheduler",
|
|
"securityContext": {
|
|
"fsGroup": 1654,
|
|
"fsGroupChangePolicy": "OnRootMismatch",
|
|
"runAsGroup": 1654,
|
|
"runAsNonRoot": true,
|
|
"runAsUser": 1654,
|
|
"seccompProfile": {
|
|
"type": "RuntimeDefault"
|
|
}
|
|
},
|
|
"serviceAccount": "mysql-operator",
|
|
"serviceAccountName": "mysql-operator",
|
|
"terminationGracePeriodSeconds": 30,
|
|
"volumes": [
|
|
{
|
|
"emptyDir": {},
|
|
"name": "tmp"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|