Migrate deployment from Volcengine VKE to K3s
Some checks failed
Build and Deploy / build-and-deploy (push) Failing after 2m22s

- Switch CI/CD target from KUBE_CONFIG_VKE to KUBE_CONFIG_K3S
- Change ingress class from ALB to traefik (K3S built-in)
- Remove VCI annotations from deployments
- Restore imagePullSecrets for SWR registry access

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
zyc 2026-03-19 14:46:33 +08:00
parent caf51b0909
commit d75d35dfc0
4 changed files with 7 additions and 9 deletions

View File

@ -54,10 +54,10 @@ jobs:
chmod +x kubectl chmod +x kubectl
mv kubectl /usr/local/bin/ mv kubectl /usr/local/bin/
- name: Deploy to Volcengine VKE - name: Deploy to K3s
run: | run: |
mkdir -p ~/.kube mkdir -p ~/.kube
echo "${{ secrets.KUBE_CONFIG_VKE }}" > ~/.kube/config echo "${{ secrets.KUBE_CONFIG_K3S }}" > ~/.kube/config
- name: Create or Update Secrets - name: Create or Update Secrets
run: | run: |

View File

@ -13,9 +13,9 @@ spec:
metadata: metadata:
labels: labels:
app: video-backend app: video-backend
annotations:
vke.volcengine.com/burst-to-vci: "enforce"
spec: spec:
imagePullSecrets:
- name: swr-secret
containers: containers:
- name: video-backend - name: video-backend
image: ${CI_REGISTRY_IMAGE}/video-backend:latest image: ${CI_REGISTRY_IMAGE}/video-backend:latest

View File

@ -3,9 +3,7 @@ kind: Ingress
metadata: metadata:
name: video-huoshan-ingress name: video-huoshan-ingress
annotations: annotations:
kubernetes.io/ingress.class: "alb" kubernetes.io/ingress.class: "traefik"
alb.ingress.kubernetes.io/listen-ports: '[{"HTTP": 80}, {"HTTPS": 443}]'
alb.ingress.kubernetes.io/ssl-redirect: "true"
cert-manager.io/cluster-issuer: "letsencrypt-prod" cert-manager.io/cluster-issuer: "letsencrypt-prod"
spec: spec:
tls: tls:

View File

@ -13,9 +13,9 @@ spec:
metadata: metadata:
labels: labels:
app: video-web app: video-web
annotations:
vke.volcengine.com/burst-to-vci: "enforce"
spec: spec:
imagePullSecrets:
- name: swr-secret
containers: containers:
- name: video-web - name: video-web
image: ${CI_REGISTRY_IMAGE}/video-web:latest image: ${CI_REGISTRY_IMAGE}/video-web:latest