synchronization
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
2025-08-25 13:02:18 +08:00
commit f1ecb4ed07
37 changed files with 1644 additions and 0 deletions

59
kubernetes/gateway.yaml Normal file
View File

@@ -0,0 +1,59 @@
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: blog
name: blog-gateway
labels:
app: blog-gateway
spec:
progressDeadlineSeconds: 200
replicas: 1
revisionHistoryLimit: 1
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
selector:
matchLabels:
app: blog-gateway
template:
metadata:
labels:
app: blog-gateway
spec:
containers:
- name: blog-gateway
image: registry.cn-hangzhou.aliyuncs.com/offends/hexo:gateway-kubernetes
imagePullPolicy: IfNotPresent
env:
- name: localhost
value: "blog.offends.cn"
ports:
- containerPort: 80
protocol: TCP
readinessProbe:
failureThreshold: 3
initialDelaySeconds: 5
periodSeconds: 3
successThreshold: 1
tcpSocket:
port: 80
timeoutSeconds: 10
resources:
limits:
memory: 512Mi
---
apiVersion: v1
kind: Service
metadata:
namespace: blog
name: blog-gateway
spec:
selector:
app: blog-gateway
ports:
- name: blog-gateway
protocol: TCP
port: 80
targetPort: 80