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"