Dockerfile updated to spa
All checks were successful
/ image_build (push) Successful in 1m53s

This commit is contained in:
tymur999
2026-03-17 14:59:03 -04:00
parent cbb6b997e2
commit 8976f4f9d8
9 changed files with 80 additions and 196 deletions

56
k8s.yaml Normal file
View File

@@ -0,0 +1,56 @@
---
apiVersion: apps/v1
kind: Deployment
metadata: &metadata
name: blog
labels: &label
app: blog
spec:
selector:
matchLabels: *label
template:
metadata: *metadata
spec:
containers:
- name: nginx
image: gitea.tymur999.com/tymur999/blog:latest
ports:
- containerPort: 8000
name: http
---
apiVersion: v1
kind: Service
metadata:
name: blog
labels: &labels
app: blog
spec:
selector: *labels
ports:
- port: 8000
protocol: TCP
targetPort: http
name: http
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: blog
labels:
app: blog
spec:
ingressClassName: traefik
tls:
- hosts:
- tymur999.com
rules:
- host: tymur999.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: blog
port:
name: http