From a3ea1feb46498079a32c8756b63f673ad0f23164 Mon Sep 17 00:00:00 2001 From: Daniel Svitan Date: Mon, 26 May 2025 09:43:28 +0200 Subject: [PATCH] :lipstick: Fixes file formatting --- k3s-depl.yaml | 42 +++++++++++++++++++++--------------------- k3s-pod.yaml | 42 +++++++++++++++++++++--------------------- k3s-serv.yaml | 7 +++---- 3 files changed, 45 insertions(+), 46 deletions(-) diff --git a/k3s-depl.yaml b/k3s-depl.yaml index b4379ea..a1c9571 100644 --- a/k3s-depl.yaml +++ b/k3s-depl.yaml @@ -16,24 +16,24 @@ spec: app: porty spec: containers: - - name: porty - image: gitea.svitan.dev/streamer272/svitan.dev:latest - imagePullPolicy: IfNotPresent - ports: - - containerPort: 3000 - protocol: TCP - resources: - requests: - cpu: "500m" - memory: "32Mi" - limits: - cpu: "2000m" - memory: "256Mi" - livenessProbe: - httpGet: - port: 3000 - path: / - initialDelaySeconds: 5 - timeoutSeconds: 1 - periodSeconds: 10 - failureThreshold: 3 + - name: porty + image: gitea.svitan.dev/streamer272/svitan.dev:latest + imagePullPolicy: IfNotPresent + ports: + - containerPort: 3000 + protocol: TCP + resources: + requests: + cpu: "500m" + memory: "32Mi" + limits: + cpu: "2000m" + memory: "256Mi" + livenessProbe: # if liveness fails, container is restarted + httpGet: + port: 3000 + path: / + initialDelaySeconds: 5 + timeoutSeconds: 1 + periodSeconds: 10 + failureThreshold: 3 diff --git a/k3s-pod.yaml b/k3s-pod.yaml index 93b8f70..c2d2c5c 100644 --- a/k3s-pod.yaml +++ b/k3s-pod.yaml @@ -4,24 +4,24 @@ metadata: name: portfolio spec: containers: - - image: gitea.svitan.dev/streamer272/svitan.dev:latest - name: portfolio - ports: - - containerPort: 3000 - name: http - protocol: TCP - resources: - requests: - cpu: "500m" - memory: "32Mi" - limits: - cpu: "2000m" - memory: "256Mi" - livenessProbe: - httpGet: - path: / - port: 3000 - initialDelaySeconds: 5 - timeoutSeconds: 1 - periodSeconds: 10 - failureThreshold: 3 + - image: gitea.svitan.dev/streamer272/svitan.dev:latest + name: portfolio + ports: + - containerPort: 3000 + name: http + protocol: TCP + resources: + requests: + cpu: "500m" + memory: "32Mi" + limits: + cpu: "2000m" + memory: "256Mi" + livenessProbe: + httpGet: + path: / + port: 3000 + initialDelaySeconds: 5 + timeoutSeconds: 1 + periodSeconds: 10 + failureThreshold: 3 diff --git a/k3s-serv.yaml b/k3s-serv.yaml index 87a896c..2739252 100644 --- a/k3s-serv.yaml +++ b/k3s-serv.yaml @@ -6,8 +6,7 @@ spec: selector: app: porty ports: - - protocol: TCP - port: 3000 - targetPort: 3000 + - protocol: TCP + port: 3000 # this is the port the users will access, so probably should be 80 + targetPort: 3000 type: LoadBalancer - \ No newline at end of file