commit b343a20db98bda7bb038ccd056494e905e22ad62 Author: Daniel Svitan Date: Sat May 24 10:21:31 2025 +0200 :tada: Inits repo diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9f11b75 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.idea/ diff --git a/k3s-depl.yaml b/k3s-depl.yaml new file mode 100644 index 0000000..b4379ea --- /dev/null +++ b/k3s-depl.yaml @@ -0,0 +1,39 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: porty + labels: + app: porty +spec: + replicas: 3 + selector: + matchLabels: + app: porty + template: + metadata: + name: porty + labels: + 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 diff --git a/k3s-serv.yaml b/k3s-serv.yaml new file mode 100644 index 0000000..7b4fc04 --- /dev/null +++ b/k3s-serv.yaml @@ -0,0 +1,13 @@ +apiVersion: v1 +kind: Service +metadata: + name: porty +spec: + selector: + app: porty + ports: + - protocol: TCP + port: 80 + targetPort: 3000 + type: LoadBalancer + \ No newline at end of file diff --git a/k3s-test.yaml b/k3s-test.yaml new file mode 100644 index 0000000..93b8f70 --- /dev/null +++ b/k3s-test.yaml @@ -0,0 +1,27 @@ +apiVersion: v1 +kind: Pod +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