From be56b5f98b63819822a030ffe8edd9527ea06ded Mon Sep 17 00:00:00 2001 From: yuki-js Date: Mon, 6 May 2024 17:50:19 +0900 Subject: [PATCH] fix syntax by splitting --- manifests/overlays/production/kustomization.yaml | 3 ++- .../overlays/production/patches/media-proxy.yaml | 15 +++++++++++++++ .../{patches.yaml => patches/web.yaml} | 16 ---------------- 3 files changed, 17 insertions(+), 17 deletions(-) create mode 100644 manifests/overlays/production/patches/media-proxy.yaml rename manifests/overlays/production/{patches.yaml => patches/web.yaml} (58%) diff --git a/manifests/overlays/production/kustomization.yaml b/manifests/overlays/production/kustomization.yaml index 2a5a6aa..b7f932e 100644 --- a/manifests/overlays/production/kustomization.yaml +++ b/manifests/overlays/production/kustomization.yaml @@ -12,4 +12,5 @@ configMapGenerator: - config.js=cfg/config.js patches: - - path: patches.yaml + - path: patches/web.yaml + - path: patches/media-proxy.yaml diff --git a/manifests/overlays/production/patches/media-proxy.yaml b/manifests/overlays/production/patches/media-proxy.yaml new file mode 100644 index 0000000..8752f80 --- /dev/null +++ b/manifests/overlays/production/patches/media-proxy.yaml @@ -0,0 +1,15 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: media-proxy-deployment + namespace: misskey +spec: + template: + metadata: + labels: + app: media-proxy + spec: + hostAliases: + - ip: "10.0.1.4" + hostnames: + - "key.aoki.app" diff --git a/manifests/overlays/production/patches.yaml b/manifests/overlays/production/patches/web.yaml similarity index 58% rename from manifests/overlays/production/patches.yaml rename to manifests/overlays/production/patches/web.yaml index 80f47b0..ba9c517 100644 --- a/manifests/overlays/production/patches.yaml +++ b/manifests/overlays/production/patches/web.yaml @@ -14,19 +14,3 @@ spec: - ip: "10.0.1.4" # ad hoc fix: it's the one of the physical nodes where the Ingress Controller is placed hostnames: - "key.aoki.app" ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: media-proxy-deployment - namespace: misskey -spec: - template: - metadata: - labels: - app: media-proxy - spec: - hostAliases: - - ip: "10.0.1.4" - hostnames: - - "key.aoki.app"