UNPKG

myex-cli

Version:

Opinionated Express.js framework with CLI tools

73 lines 1.73 kB
apiVersion: apps/v1 kind: Deployment metadata: name: myx-app labels: app: myx component: api spec: replicas: 3 selector: matchLabels: app: myx component: api strategy: type: RollingUpdate rollingUpdate: maxSurge: 1 maxUnavailable: 1 template: metadata: labels: app: myx component: api spec: containers: - name: myx-app image: ${DOCKER_REGISTRY}/myx:latest imagePullPolicy: Always ports: - containerPort: 3000 name: http resources: limits: cpu: "500m" memory: "512Mi" requests: cpu: "200m" memory: "256Mi" env: - name: NODE_ENV value: "production" - name: PORT value: "3000" - name: MONGODB_URI valueFrom: secretKeyRef: name: myx-secrets key: mongodb-uri - name: JWT_SECRET valueFrom: secretKeyRef: name: myx-secrets key: jwt-secret livenessProbe: httpGet: path: /health port: http initialDelaySeconds: 30 periodSeconds: 10 timeoutSeconds: 5 readinessProbe: httpGet: path: /health port: http initialDelaySeconds: 5 periodSeconds: 10 timeoutSeconds: 5 volumeMounts: - name: logs mountPath: /app/logs volumes: - name: logs emptyDir: {}