Remove Homepage Revalidation Temporarily

This commit is contained in:
Benjamin Toby 2024-01-01 07:53:36 +01:00
parent 2ad9e44e19
commit 5c581775a5
2 changed files with 47 additions and 1 deletions

View File

@ -3,7 +3,7 @@ import HomepageComponent from "./(components)/HomepageComponent";
const datasquirel = require("datasquirel"); const datasquirel = require("datasquirel");
export const revalidate = 3600; // export const revalidate = 3600;
type DsqlResponse = { type DsqlResponse = {
success: boolean; success: boolean;

46
kubernetes/config.yaml Normal file
View File

@ -0,0 +1,46 @@
---
apiVersion: "v1"
kind: "Namespace"
metadata:
name: "tben"
---
apiVersion: "apps/v1"
kind: "Deployment"
metadata:
name: "tben-me-personal-site"
namespace: "tben"
labels:
app: "tben-me-personal-site"
spec:
replicas: 3
selector:
matchLabels:
app: "tben-me-personal-site"
template:
metadata:
labels:
app: "tben-me-personal-site"
spec:
containers:
- name: "tben-me-1"
image: "us-central1-docker.pkg.dev/unique-yew-406206/tben-docker-repo-gcp/tben-me"
---
apiVersion: "autoscaling/v2beta1"
kind: "HorizontalPodAutoscaler"
metadata:
name: "tben-me-personal-site-hpa-cvjy"
namespace: "tben"
labels:
app: "tben-me-personal-site"
spec:
scaleTargetRef:
kind: "Deployment"
name: "tben-me-personal-site"
apiVersion: "apps/v1"
minReplicas: 1
maxReplicas: 5
metrics:
- type: "Resource"
resource:
name: "cpu"
targetAverageUtilization: 80