Some checks failed
Build and Push Docker / build (push) Failing after 2m40s
- Update Fengling.Platform.Domain/Infrastructure from 1.0.14 to 1.0.17 - Add temporary EnsureDeletedAsync() to recreate Gateway DB tables - Fix bigint/character varying type mismatch in GwCluster.Id - Add Npgsql log level config to suppress GSSAPI warnings - Add DATABASE_SCHEMA_FIX.md documentation Refs: AGENTS.md Recent Changes 2026-03-08
136 lines
3.2 KiB
YAML
136 lines
3.2 KiB
YAML
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: fengling-console-config
|
|
namespace: fengling-test
|
|
labels:
|
|
app: fengling-console
|
|
data:
|
|
ASPNETCORE_ENVIRONMENT: "Production"
|
|
Kestrel__Endpoints__Http__Url: "http://0.0.0.0:8080"
|
|
Logging__LogLevel__Default: "Information"
|
|
Logging__LogLevel__Microsoft__AspNetCore: "Warning"
|
|
Logging__LogLevel__Npgsql: "Error" # 隐藏 GSSAPI 警告
|
|
ServiceDiscovery__UseInClusterConfig: "true"
|
|
ServiceDiscovery__Namespace: "fengling-test"
|
|
ServiceDiscovery__LabelSelector: "app-router-name"
|
|
---
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: fengling-console-secret
|
|
namespace: fengling-test
|
|
type: Opaque
|
|
stringData:
|
|
ConnectionStrings__DefaultConnection: "Host=81.68.223.70;Port=15432;Database=fengling_console;Username=movingsam;Password=sl52788542"
|
|
Jwt__Authority: "https://apigateway.shtao1.cn"
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: fengling-console
|
|
namespace: fengling-test
|
|
labels:
|
|
app: fengling-console
|
|
version: v2
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: fengling-console
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: fengling-console
|
|
version: v2
|
|
spec:
|
|
serviceAccountName: fengling-console-sa
|
|
containers:
|
|
- name: console
|
|
image: 192.168.100.120:8418/fengling/fengling-console:test
|
|
imagePullPolicy: Always
|
|
ports:
|
|
- containerPort: 8080
|
|
name: http
|
|
protocol: TCP
|
|
env:
|
|
- name: ASPNETCORE_ENVIRONMENT
|
|
value: "Production"
|
|
- name: ASPNETCORE_URLS
|
|
value: "http://+:8080"
|
|
envFrom:
|
|
- configMapRef:
|
|
name: fengling-console-config
|
|
- secretRef:
|
|
name: fengling-console-secret
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: 8080
|
|
initialDelaySeconds: 30
|
|
periodSeconds: 10
|
|
timeoutSeconds: 5
|
|
failureThreshold: 3
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: 8080
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 5
|
|
timeoutSeconds: 3
|
|
failureThreshold: 3
|
|
resources:
|
|
requests:
|
|
cpu: 200m
|
|
memory: 256Mi
|
|
limits:
|
|
cpu: 1000m
|
|
memory: 512Mi
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: fengling-console
|
|
namespace: fengling-test
|
|
labels:
|
|
app: fengling-console
|
|
spec:
|
|
type: ClusterIP
|
|
selector:
|
|
app: fengling-console
|
|
ports:
|
|
- port: 80
|
|
targetPort: 8080
|
|
name: http
|
|
---
|
|
apiVersion: v1
|
|
kind: ServiceAccount
|
|
metadata:
|
|
name: fengling-console-sa
|
|
namespace: fengling-test
|
|
---
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: ClusterRole
|
|
metadata:
|
|
name: fengling-console-role
|
|
rules:
|
|
- apiGroups: [""]
|
|
resources: ["services"]
|
|
verbs: ["get", "list", "watch"]
|
|
- apiGroups: [""]
|
|
resources: ["namespaces"]
|
|
verbs: ["get", "list"]
|
|
---
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: ClusterRoleBinding
|
|
metadata:
|
|
name: fengling-console-binding
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
name: fengling-console-sa
|
|
namespace: fengling-test
|
|
roleRef:
|
|
kind: ClusterRole
|
|
name: fengling-console-role
|
|
apiGroup: rbac.authorization.k8s.io
|