piano-sheet: 修 CI + ns 改 cube-piano #2
@@ -17,6 +17,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
APP: piano-sheet
|
||||
NS: cube-piano
|
||||
IMAGE: registry.famzheng.me/mochi/piano-sheet
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
@@ -51,5 +52,5 @@ jobs:
|
||||
|
||||
- name: Roll out to k3s
|
||||
run: |
|
||||
kubectl -n "cube-$APP" set image "deploy/$APP" "$APP=$IMAGE:${{ steps.tag.outputs.sha }}"
|
||||
kubectl -n "cube-$APP" rollout status "deploy/$APP" --timeout=120s
|
||||
kubectl -n "$NS" set image "deploy/$APP" "$APP=$IMAGE:${{ steps.tag.outputs.sha }}"
|
||||
kubectl -n "$NS" rollout status "deploy/$APP" --timeout=120s
|
||||
|
||||
@@ -2,7 +2,7 @@ apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: piano-sheet
|
||||
namespace: cube-piano-sheet
|
||||
namespace: cube-piano
|
||||
labels:
|
||||
app: piano-sheet
|
||||
spec:
|
||||
|
||||
@@ -2,10 +2,10 @@ apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: piano-sheet
|
||||
namespace: cube-piano-sheet
|
||||
namespace: cube-piano
|
||||
annotations:
|
||||
# 上传整组图片可能 ~600MB,调高 traefik 默认上限
|
||||
traefik.ingress.kubernetes.io/router.middlewares: cube-piano-sheet-bodylimit@kubernetescrd
|
||||
traefik.ingress.kubernetes.io/router.middlewares: cube-piano-bodylimit@kubernetescrd
|
||||
spec:
|
||||
ingressClassName: traefik
|
||||
rules:
|
||||
@@ -24,7 +24,7 @@ apiVersion: traefik.io/v1alpha1
|
||||
kind: Middleware
|
||||
metadata:
|
||||
name: bodylimit
|
||||
namespace: cube-piano-sheet
|
||||
namespace: cube-piano
|
||||
spec:
|
||||
buffering:
|
||||
maxRequestBodyBytes: 700000000
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: cube-piano-sheet
|
||||
name: cube-piano
|
||||
|
||||
@@ -2,7 +2,7 @@ apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: piano-sheet-data
|
||||
namespace: cube-piano-sheet
|
||||
namespace: cube-piano
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
|
||||
@@ -2,7 +2,7 @@ apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: piano-sheet
|
||||
namespace: cube-piano-sheet
|
||||
namespace: cube-piano
|
||||
spec:
|
||||
selector:
|
||||
app: piano-sheet
|
||||
|
||||
Reference in New Issue
Block a user