apiVersion: apps/v1 kind: Deployment metadata: name: easyai-web labels: app.kubernetes.io/name: easyai-web spec: replicas: 2 revisionHistoryLimit: 3 selector: matchLabels: app.kubernetes.io/name: easyai-web strategy: type: RollingUpdate rollingUpdate: maxSurge: 1 maxUnavailable: 0 template: metadata: labels: app.kubernetes.io/name: easyai-web spec: serviceAccountName: easyai-workload terminationGracePeriodSeconds: 30 containers: - name: easyai-web image: registry.cn-shanghai.aliyuncs.com/comfy-ai/one-ai:latest imagePullPolicy: Always ports: - name: http containerPort: 3010 envFrom: - configMapRef: name: easyai-app-config - secretRef: name: easyai-app-secret env: - name: NUXT_PUBLIC_BASE_SSRURL value: http://easyai-server:3001 readinessProbe: httpGet: path: / port: http initialDelaySeconds: 15 periodSeconds: 10 timeoutSeconds: 5 failureThreshold: 6 livenessProbe: httpGet: path: / port: http initialDelaySeconds: 60 periodSeconds: 30 timeoutSeconds: 5 failureThreshold: 3 resources: requests: cpu: 200m memory: 512Mi limits: cpu: "1" memory: 1500Mi --- apiVersion: v1 kind: Service metadata: name: easyai-web labels: app.kubernetes.io/name: easyai-web spec: type: ClusterIP selector: app.kubernetes.io/name: easyai-web ports: - name: http port: 3010 targetPort: http