++ nexus infra

This commit is contained in:
Kochetkov S 2026-10-15 18:21:41 +03:00
parent 7f8263ede6
commit 84231c856e
5 changed files with 92 additions and 0 deletions

View File

@ -11,3 +11,4 @@ resources:
- ../../../infrastructure/vault/vk-infra - ../../../infrastructure/vault/vk-infra
- ../../../infrastructure/kb/vk-infra - ../../../infrastructure/kb/vk-infra
- ../../../infrastructure/gitlab-runner/vk-infra - ../../../infrastructure/gitlab-runner/vk-infra
- ../../../infrastructure/nexus/vk-infra

View File

@ -58,6 +58,17 @@ spec:
renewBefore: 360h0m0s renewBefore: 360h0m0s
privateKey: privateKey:
rotationPolicy: Always rotationPolicy: Always
nexus-tls:
dnsNames:
- nexus.infra.sarex.tech
issuerRef:
name: letsencrypt-issuer-istio
kind: ClusterIssuer
spec:
duration: 2160h0m0s
renewBefore: 360h0m0s
privateKey:
rotationPolicy: Always
idp-tls: idp-tls:
dnsNames: dnsNames:
- iam.sarex.io - iam.sarex.io
@ -93,6 +104,17 @@ spec:
tls: tls:
credentialName: kb-tls credentialName: kb-tls
mode: SIMPLE mode: SIMPLE
nexus:
name: nexus-gateway
namespace: istio-system
selector:
istio: ingressgateway
servers:
- hosts:
- nexus.infra.sarex.tech
tls:
credentialName: nexus-tls
mode: SIMPLE
idp: idp:
name: idp-gateway name: idp-gateway
namespace: istio-system namespace: istio-system
@ -127,6 +149,17 @@ spec:
prefix: / prefix: /
service: kb-service.kb.svc.cluster.local service: kb-service.kb.svc.cluster.local
port: 80 port: 80
nexus-virt-service:
namespace: istio-system
hosts:
- nexus.infra.sarex.tech
gateways:
- istio-system/nexus-gateway
routes:
- path:
prefix: /
service: nexus.nexus.svc.cluster.local
port: 8081
idp-virt-service: idp-virt-service:
namespace: istio-system namespace: istio-system
hosts: hosts:

View File

@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- namespace.yaml
- nexus.yaml

View File

@ -0,0 +1,6 @@
apiVersion: v1
kind: Namespace
metadata:
name: nexus
labels:
istio-injection: enabled

View File

@ -0,0 +1,47 @@
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: nexus
namespace: nexus
spec:
interval: 10m
timeout: 15m
chart:
spec:
chart: nexus3
version: "5.7.0"
sourceRef:
kind: HelmRepository
name: yc-oci-charts
namespace: flux-system
interval: 10m
dependsOn:
- name: istiod
namespace: istio-system
install:
remediation:
retries: 3
upgrade:
remediation:
retries: 3
values:
image:
repository: cr.yandex/crp3ccidau046kdj8g9q/mirror/nexus3
bashImage:
repository: cr.yandex/crp3ccidau046kdj8g9q/mirror/bash
tag: "20261015"
imagePullSecrets:
- name: istio-registry-secret
nodeSelector:
dedicated: null
sarex.io/pool: svc
tolerations: []
persistence:
storageClass: csi-ceph-ssd-retain
size: 50Gi
backupSyncer:
enabled: false
config:
enabled: false
gateway: null
virtualService: null