email
Some checks failed
K8S Fission Deployment / Deployment fission functions (push) Failing after 30s

This commit is contained in:
QuangMinh_123
2025-12-02 13:24:52 +00:00
parent 1b71e5ee6d
commit d4fa4c33b9
9 changed files with 18 additions and 33 deletions

BIN
.DS_Store vendored

Binary file not shown.

View File

@@ -1,7 +1,7 @@
{
"namespace": "default",
"environments": {
"user-avatar-py": {
"user-email-py": {
"image": "ghcr.io/fission/python-env",
"builder": "ghcr.io/fission/python-builder",
"mincpu": 50,
@@ -17,16 +17,16 @@
}
},
"packages": {
"ailbl-user-avatar": {
"ailbl-user-email": {
"buildcmd": "./build.sh",
"sourcearchive": "package.zip",
"env": "user-avatar-py"
"env": "user-email-py"
}
},
"function_common": {
"pkg": "ailbl-user-avatar",
"pkg": "ailbl-user-email",
"secrets": [
"fission-ailbl-user-avatar-env"
"fission-ailbl-user-email-env"
],
"executor": {
"select": "newdeploy",
@@ -46,7 +46,7 @@
"maxmemory": 500
},
"secrets": {
"fission-ailbl-user-avatar-env": {
"fission-ailbl-user-email-env": {
"literals": [
"PG_HOST=160.30.113.113",
"PG_PORT=45432",

View File

@@ -1,7 +1,7 @@
{
"namespace": "default",
"secrets": {
"fission-ailbl-user-avatar-env": {
"fission-ailbl-user-email-env": {
"literals": [
"PG_HOST=160.30.113.113",
"PG_PORT=45432",

View File

@@ -1,7 +1,7 @@
{
"namespace": "default",
"secrets": {
"fission-ailbl-user-avatar-env": {
"fission-ailbl-user-email-env": {
"literals": [
"S3_BUCKET=ailbl",
"S3_ENDPOINT_URL=http://160.30.113.113:9000",

View File

@@ -1,7 +1,7 @@
{
"namespace": "default",
"secrets": {
"fission-ailbl-user-avatar-env": {
"fission-ailbl-user-email-env": {
"literals": [
"PG_HOST=160.30.113.113",
"PG_PORT=45432",
@@ -11,4 +11,4 @@
]
}
}
}
}

View File

@@ -1,7 +1,7 @@
{
"namespace": "default",
"secrets": {
"fission-ailbl-user-avatar-env": {
"fission-ailbl-user-email-env": {
"literals": [
"PG_HOST=160.30.113.113",
"PG_PORT=45432",
@@ -11,4 +11,4 @@
]
}
}
}
}

View File

@@ -1,10 +0,0 @@
# Load từ .env và cung cấp cho app
import os
class Config:
ALLOWED_EXTENSIONS = {'png', 'jpg', 'jpeg', 'gif', 'webp'}
MAX_FILE_SIZE = 5 * 1024 * 1024 # 5MB
# vì làm microservice nên không cần dùng biến môi trường nữa, khi mà dùng thì khai báo ở trên đầu luôn
# Nó khác với mô hình bình thường là config.py chỉ để khai báo cấu hình tĩnh thôi
# ALLOWED_IMAGE_TYPES = {"image/jpeg", "image/png", "image/gif", "image/webp"}

View File

@@ -1,6 +1,6 @@
Flask==3.1.0
psycopg2-binary==2.9.10
pydantic==2.11.3
minio==7.2.5
Pillow==10.4.0
boto3==1.35.70
# Flask==3.1.0
# psycopg2-binary==2.9.10
# pydantic==2.11.3
# minio==7.2.5
# Pillow==10.4.0
# boto3==1.35.70

View File

@@ -1,5 +0,0 @@
gitdb==4.0.11
GitPython==3.1.41
smmap==5.0.1
Flask==2.1.1
requests==2.32.2