Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build_latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
node-version: [22.x]
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull_request_master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
node-version: [22.x]
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:20-alpine
FROM node:22-alpine
MAINTAINER Digitransit version: 0.1
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
Expand Down
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@

We deploy digitransit docker images automatically from Docker Hub. When a Docker image of a kubernetes deployment that we have deployed in our environment is updated at Docker Hub the new image is deployed automatically.

Autodeployer also takes care of restarting dependant deployments. For example when otp-data is updated otp is restarted etc.
Autodeployer also takes care of restarting dependant deployments.

Additionally, some deployments are restarted periodically.

## Prerequisites

Deployments should have the following labels defined as deployer uses `app` as an identifier for finding deployments/pods and `lastRestartDate` should exist because deployer at runtime restarts services by updating that label to be epoch time from the restart moment and it also checks when deployment was last "restarted" by reading that value. If the value is not a number, deployer ignores it and checks what is the age of the oldest pod to determine the age of the deployment.
Deployments should have the following labels defined as deployer uses `app` as an identifier for finding deployments/pods.
```yaml
metadata:
name: <deployment name>
Expand All @@ -22,7 +22,6 @@ spec:
metadata:
labels:
app: <deployment name>
lastRestartDate: dummy-value
```

## Autodeployer configuration
Expand All @@ -33,7 +32,7 @@ Deployer configuration is stored in labels. For example take a look at https://g
metadata:
labels:
update: "auto"
restartAfterDeployments: "opentripplanner-data-con-hsl"
restartAfterDeployments: "digitransit-ui-hsl-v3"
restartDelay: "5"
```

Expand All @@ -55,7 +54,7 @@ Labels are also used for the periodic (cron style) restarts. These labels can co
metadata:
labels:
update: "auto"
restartAfterDeployments: "opentripplanner-data-con-hsl"
restartAfterDeployments: "digitransit-ui-hsl-v3"
restartDelay: "1"
restartAt: "04.30"
restartLimitInterval: "240"
Expand Down
Loading
Loading