apiVersion: apps/v1 kind: Deployment metadata: name: fischerx-web namespace: fischerx labels: app: fischerx-web spec: replicas: 2 selector: matchLabels: app: fischerx-web strategy: type: RollingUpdate rollingUpdate: maxSurge: 1 maxUnavailable: 0 template: metadata: labels: app: fischerx-web spec: containers: - name: fischerx-web image: fischerx-web:latest imagePullPolicy: IfNotPresent ports: - containerPort: 3000 name: http env: - name: NODE_ENV valueFrom: configMapKeyRef: name: fischerx-config key: NODE_ENV - name: NEXT_PUBLIC_API_URL valueFrom: configMapKeyRef: name: fischerx-config key: NEXT_PUBLIC_API_URL resources: requests: cpu: "250m" memory: "256Mi" limits: cpu: "1000m" memory: "512Mi" livenessProbe: httpGet: path: / port: 3000 initialDelaySeconds: 60 periodSeconds: 10 readinessProbe: httpGet: path: / port: 3000 initialDelaySeconds: 30 periodSeconds: 5