# Kubernetes --- apiVersion: extensions/v1beta1 kind: Deployment metadata: name: "${DEPLOYMENT_NAME}" spec: replicas: 2 minReadySeconds: 5 template: metadata: labels: app: "${DEPLOYMENT_APP}" spec: containers: - name: stackage-server image: "${DEPLOYMENT_IMAGE}" imagePullPolicy: Always ports: - name: http containerPort: 3000 command: ["stackage-server"] workingDir: /app env: - name: APPROOT value: "${APPROOT}" readinessProbe: httpGet: path: / port: 3000 httpHeaders: # Works around stackage-server's `forceSSL` redirect - name: HTTPS value: "on" initialDelaySeconds: 5 timeoutSeconds: 1 periodSeconds: 5 successThreshold: 1 livenessProbe: httpGet: path: / port: 3000 httpHeaders: # Works around stackage-server's `forceSSL` redirect - name: HTTPS value: "on" initialDelaySeconds: 60 timeoutSeconds: 1 periodSeconds: 10 successThreshold: 1 failureThreshold: 3 imagePullSecrets: - name: registry-key