From bb82afddd86f78f11080a5a93c17b10e942a0909 Mon Sep 17 00:00:00 2001 From: youmusic-bot Date: Fri, 31 Oct 2025 03:33:29 +0000 Subject: [PATCH] chore: Update k8s manifest to version master-28 --- k8s/manifest.yaml | 34 ++++++++++++++++++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/k8s/manifest.yaml b/k8s/manifest.yaml index 01da071..6bdcfb2 100644 --- a/k8s/manifest.yaml +++ b/k8s/manifest.yaml @@ -54,7 +54,7 @@ spec: # Init container to run database migrations initContainers: - name: youmusic-migrations - image: "ghcr.io/wahyd4/you-music:master-27" + image: "ghcr.io/wahyd4/you-music:master-28" imagePullPolicy: Always workingDir: /app/backend command: @@ -85,7 +85,7 @@ spec: containers: - name: youmusic - image: "ghcr.io/wahyd4/you-music:master-27" # Auto-updated by CI + image: "ghcr.io/wahyd4/you-music:master-28" # Auto-updated by CI imagePullPolicy: Always workingDir: /app/backend command: @@ -231,3 +231,33 @@ spec: name: youmusic port: number: 80 + +--- +# Ingress for public API v1 (no authentication - API key based) +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: youmusic-api-v1-ingress + annotations: + kubernetes.io/ingress.class: "nginx" + kubernetes.io/tls-acme: "true" + cert-manager.io/cluster-issuer: "letsencrypt-prod" + nginx.ingress.kubernetes.io/proxy-body-size: 100m + nginx.ingress.kubernetes.io/proxy-read-timeout: "300" +spec: + ingressClassName: nginx + tls: + - hosts: + - music.junv.cc # Update with your domain + secretName: youmusic-tls + rules: + - host: music.junv.cc # Update with your domain + http: + paths: + - path: /api/v1 + pathType: Prefix + backend: + service: + name: youmusic + port: + number: 80