feat: initial commit - Rust + React URL shortener
CI/CD / lint-and-test (push) Has been cancelled
CI/CD / build-and-push (push) Has been cancelled
CI/CD / deploy (push) Has been cancelled

This commit is contained in:
ZeptaLab Bot
2026-05-31 20:45:50 +00:00
commit ca775da1f1
15 changed files with 808 additions and 0 deletions
+45
View File
@@ -0,0 +1,45 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: hello-web
labels:
app: hello-web
spec:
replicas: 2
selector:
matchLabels:
app: hello-web
template:
metadata:
labels:
app: hello-web
spec:
containers:
- name: hello-web
image: IMAGE_PLACEHOLDER
ports:
- containerPort: 3000
name: http
protocol: TCP
env:
- name: RUST_LOG
value: "info"
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 500m
memory: 512Mi
livenessProbe:
httpGet:
path: /health
port: 3000
initialDelaySeconds: 10
periodSeconds: 30
readinessProbe:
httpGet:
path: /health
port: 3000
initialDelaySeconds: 5
periodSeconds: 10
+19
View File
@@ -0,0 +1,19 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: hello-web
annotations:
nginx.ingress.kubernetes.io/proxy-body-size: "10m"
nginx.ingress.kubernetes.io/use-regex: "true"
spec:
rules:
- host: hello-web.k8s.crashpoint.ru
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: hello-web
port:
number: 80
+15
View File
@@ -0,0 +1,15 @@
apiVersion: v1
kind: Service
metadata:
name: hello-web
labels:
app: hello-web
spec:
type: ClusterIP
ports:
- port: 80
targetPort: 3000
protocol: TCP
name: http
selector:
app: hello-web