Skip to content

Commit

Permalink
weofij
Browse files Browse the repository at this point in the history
  • Loading branch information
klhftco committed Nov 5, 2024
1 parent 0f86b37 commit 6cc0e13
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 deletions.
4 changes: 4 additions & 0 deletions apps/frontend/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,8 @@ import { createRoot } from "react-dom/client";
import App from "./App";
import "./main.scss";

setTimeout(() => {
throw new Error("Intentional runtime error");
}, 1000);

createRoot(document.getElementById("root") as HTMLElement).render(<App />);
10 changes: 3 additions & 7 deletions infra/app/templates/backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,10 @@ spec:
value: "_"
readinessProbe:
httpGet:
path: "http://localhost:5001/api/graphql"
path: {{ .Values.backend.path }}
port: {{ .Values.backend.port }}
initialDelaySeconds: 5
periodSeconds: 5
# timeoutSeconds: 2
# successThreshold: 1
# failureThreshold: 3

initialDelaySeconds: 3
periodSeconds: 3

---

Expand Down
8 changes: 3 additions & 5 deletions infra/app/templates/frontend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,9 @@ spec:
port: {{ .Values.frontend.port }}
# exec:
# command: ["/bin/bash", "-c", "/usr/local/bin/frontend-readiness.sh"]
initialDelaySeconds: 5
periodSeconds: 10
# timeoutSeconds: 5
# successThreshold: 1
# failureThreshold: 3
initialDelaySeconds: 3
periodSeconds: 3

---

apiVersion: v1
Expand Down

0 comments on commit 6cc0e13

Please sign in to comment.