diff --git a/packages/@uppy/companion/KUBERNETES.md b/packages/@uppy/companion/KUBERNETES.md index 5b148a4780..156153e5dc 100644 --- a/packages/@uppy/companion/KUBERNETES.md +++ b/packages/@uppy/companion/KUBERNETES.md @@ -89,6 +89,12 @@ spec: name: companion-env ports: - containerPort: 3020 + readinessProbe: + httpGet: + path: /health + port: 3020 + initialDelaySeconds: 3 + periodSeconds: 5 volumeMounts: - name: companion-data mountPath: /mnt/companion-data diff --git a/packages/@uppy/companion/src/companion.js b/packages/@uppy/companion/src/companion.js index 9a4be5c37b..3ca4721728 100644 --- a/packages/@uppy/companion/src/companion.js +++ b/packages/@uppy/companion/src/companion.js @@ -98,6 +98,7 @@ module.exports.app = (optionsArg = {}) => { } app.use(cookieParser()) // server tokens are added to cookies + app.get('/health', (req, res) => res.send('OK')) app.use(interceptGrantErrorResponse)