diff --git a/Dockerfile b/Dockerfile index 2db6980..2ab546e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,8 @@ WORKDIR /app COPY package*.json ./ COPY . . -RUN npm install +#RUN npm install +RUN npm install -g npm@11.2.0 RUN npx tsc # TypeScript Code kompilieren # 2. Rust Build-Stage diff --git a/deployment.yaml b/deployment.yaml index cbe3689..e70110a 100644 --- a/deployment.yaml +++ b/deployment.yaml @@ -15,3 +15,19 @@ spec: containers: - image: forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/devfw-cicd/iching-broker:main name: iching-broker + livenessProbe: + httpGet: + path: /healthz + port: 8080 + initialDelaySeconds: 30 + periodSeconds: 15 + timeoutSeconds: 5 + failureThreshold: 3 + readinessProbe: + httpGet: + path: /ready + port: 8080 + initialDelaySeconds: 20 + periodSeconds: 10 + timeoutSeconds: 3 + successThreshold: 2