From 2738d1180f949c002091e30b6a9242c267375174 Mon Sep 17 00:00:00 2001 From: Daniel Svitan Date: Mon, 9 Jun 2025 19:29:13 +0200 Subject: [PATCH] :sparkles: Adds chhoto-url --- caddy/depl.yaml | 7 +++++- caddy/serv.yaml | 21 ++++++++-------- debug/pod.yaml | 15 ++++++++++++ porty/serv.yaml | 4 ++-- url/data/urls.sqlite | Bin 0 -> 20480 bytes url/depl.yaml | 56 +++++++++++++++++++++++++++++++++++++++++++ url/serv.yaml | 11 +++++++++ 7 files changed, 101 insertions(+), 13 deletions(-) create mode 100644 debug/pod.yaml create mode 100644 url/data/urls.sqlite create mode 100644 url/depl.yaml create mode 100644 url/serv.yaml diff --git a/caddy/depl.yaml b/caddy/depl.yaml index a369bfe..07cabde 100644 --- a/caddy/depl.yaml +++ b/caddy/depl.yaml @@ -15,7 +15,7 @@ spec: labels: app: caddy spec: - hostNetwork: true + #hostNetwork: true restartPolicy: Always containers: - name: caddy @@ -36,6 +36,11 @@ spec: timeoutSeconds: 1 periodSeconds: 10 failureThreshold: 3 + ports: + - containerPort: 5001 + - containerPort: 5002 + - containerPort: 5030 + - containerPort: 5567 volumeMounts: - name: caddy-file mountPath: /etc/caddy diff --git a/caddy/serv.yaml b/caddy/serv.yaml index c0d9582..d332299 100644 --- a/caddy/serv.yaml +++ b/caddy/serv.yaml @@ -1,4 +1,4 @@ -apiVersion: apps/v1 +apiVersion: v1 kind: Service metadata: name: caddy @@ -6,13 +6,14 @@ spec: selector: app: caddy ports: - - protocol: TCP - port: 5001 - targetPort: 5001 - - protocol: TCP - port: 5002 - targetPort: 5002 - - protocol: TCP - port: 5033 - targetPort: 5033 + - port: 5001 + name: http1 + - port: 5002 + name: http2 + - port: 5030 + name: http3 + - port: 5033 + name: http4 + - port: 5567 + name: http5 type: LoadBalancer diff --git a/debug/pod.yaml b/debug/pod.yaml new file mode 100644 index 0000000..5fea02c --- /dev/null +++ b/debug/pod.yaml @@ -0,0 +1,15 @@ +apiVersion: v1 +kind: Pod +metadata: + name: debug +spec: + containers: + - name: debug + image: ubuntu + resources: + requests: + cpu: 1000m + memory: 512Mi + limits: + cpu: 4000m + memory: 4Gi diff --git a/porty/serv.yaml b/porty/serv.yaml index c0d4015..aaeed28 100644 --- a/porty/serv.yaml +++ b/porty/serv.yaml @@ -1,12 +1,12 @@ apiVersion: v1 kind: Service metadata: - name: porty + name: porty-svc spec: selector: app: porty ports: - protocol: TCP - port: 3333 # this is the port the users will access, so probably should be 80 + port: 3000 # this is the port the users will access, so probably should be 80 targetPort: 3000 type: LoadBalancer diff --git a/url/data/urls.sqlite b/url/data/urls.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..6170091e1f92322834af67f478d276440d06de98 GIT binary patch literal 20480 zcmeI%O-tiI7{KwwwhDq}FQwP#W~(B?eu2%dvr>#{8xydnQnyh9ec3h<>s4Vt$$rMY zEjUv`OsjbGQ2qmxnGDZ7nfXmGLod5-oJMjposS2pe6_w?P7Qf^9V?T|@(fxdsRDSr%36!+FQ*|Y40n+xw1WBVXtLc}v>-#nPAy1jy zP3LJ}2b$P&mN4{M-LRN9k9y6T4>dbmdYOlIFCAQuqGUGG7uJ3f&F-Vgul3hb_JP3p z?kZV}ZA=E^=t$3OKJC~$^;*q-o-K2lrJ1_5GTV$uV^<0#9%_p~ohe^Be(S>VdvdON z;)FrF<>|>6$_tKGW{jqjTeEu!)Kwr}Ti4KaS7Y*>eiU>Ur%C?t_wy9a;Z3BRs-I5i z26D2pyr#LE>q|cc0R#|0009ILKmY**5I_I{1U6WJ`~L