Initial commit: визитка mikhailkilin.ru
Rust/Axum HTTP-сервер, Dockerfile, Woodpecker CI pipeline, Kubernetes-манифесты для деплоя на k3s. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
62
k8s/bcard.yaml
Normal file
62
k8s/bcard.yaml
Normal file
@@ -0,0 +1,62 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: bcard
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: bcard
|
||||
namespace: bcard
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: bcard
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: bcard
|
||||
spec:
|
||||
containers:
|
||||
- name: bcard
|
||||
image: git.mikhailkilin.ru/killingdruid/bcard:latest
|
||||
ports:
|
||||
- containerPort: 3000
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: bcard
|
||||
namespace: bcard
|
||||
spec:
|
||||
selector:
|
||||
app: bcard
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 3000
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: bcard
|
||||
namespace: bcard
|
||||
annotations:
|
||||
cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||
spec:
|
||||
ingressClassName: traefik
|
||||
tls:
|
||||
- hosts:
|
||||
- mikhailkilin.ru
|
||||
secretName: bcard-tls
|
||||
rules:
|
||||
- host: mikhailkilin.ru
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: bcard
|
||||
port:
|
||||
number: 80
|
||||
Reference in New Issue
Block a user