fix: Add inital nexus and update drupal image

This commit is contained in:
2025-12-02 21:26:17 +01:00
parent de9388691a
commit a18e7d2e23
7 changed files with 171 additions and 0 deletions
+17
View File
@@ -60,6 +60,23 @@ spec:
- containerPort: 80
name: http
protocol: TCP
env:
- name: DRUPAL_DATABASE_HOST
value: drupal-db-rw
- name: DRUPAL_DATABASE_PREFIX
value: ""
- name: DRUPAL_DATABASE_NAME
value: app
- name: DRUPAL_DATABASE_USERNAME
valueFrom:
secretKeyRef:
name: drupal-db-app
key: username
- name: DRUPAL_DATABASE_PASSWORD
valueFrom:
secretKeyRef:
name: drupal-db-app
key: password
volumeMounts:
- mountPath: /var/www/html/modules
name: drupal
+3
View File
@@ -0,0 +1,3 @@
nexus:
enabled: true
autosync: true
+3
View File
@@ -0,0 +1,3 @@
nexus:
enabled: false
autosync: false
+8
View File
@@ -0,0 +1,8 @@
apiVersion: v1
kind: Secret
metadata:
name: nexus-admin-password
namespace: nexus
type: Opaque
stringData:
password: "changeme-admin-password-here"
+37
View File
@@ -0,0 +1,37 @@
{{- if .Values.clusterConfig.argo.enabled }}
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: nexus
namespace: argocd
spec:
destination:
namespace: nexus
server: 'https://kubernetes.default.svc'
sources:
- repoURL: {{ .Values.clusterConfig.manifests }}
targetRevision: HEAD
path: helmfile.d
plugin:
name: helmfile-cmp
env:
- name: CLUSTER_NAME
value: {{ .Values.clusterConfig.cluster }}
- name: HELMFILE_ENVIRONMENT
value: default
- name: HELMFILE_FILE_PATH
value: nexus.yaml.gotmpl
project: sys
syncPolicy:
managedNamespaceMetadata:
labels:
component: sys
syncOptions:
- CreateNamespace=true
- ApplyOutOfSyncOnly=true
- ServerSideApply=true
{{- if .Values.nexus.autosync }}
automated:
prune: true
{{- end }}
{{- end }}
+60
View File
@@ -0,0 +1,60 @@
image:
tag: 3.74.0
ingress:
enabled: true
ingressClassName: nginx
hosts:
- host: mochi.tos.oceanbox.io
paths:
- path: /
pathType: Prefix
tls:
- secretName: nexus-tls
hosts:
- mochi.tos.oceanbox.io
persistence:
enabled: true
storageClass: "ceph-rbd"
size: 8Gi
env:
- name: INSTALL4J_ADD_VM_PARAMS
value: "-Xms1024m -Xmx1024m -XX:MaxDirectMemorySize=1024m -Djava.util.prefs.userRoot=/nexus-data/javaprefs"
resources:
requests:
cpu: 200m
memory: 1Gi
limits:
memory: 1Gi
config:
enabled: true
data:
nexus.properties: |
nexus.s3.blobstore.enabled=true
rootPassword:
secret: nexus-admin-password
key: password
serviceAccount:
create: true
additionalConfigMaps:
- name: nexus-s3-config
data:
s3-blobstore.json: |
{
"name": "s3-nuget",
"type": "S3",
"attributes": {
"s3": {
"bucket": "nexus-nuget-registry",
"region": "us-east-1",
"prefix": "nuget/",
"expiration": -1
}
}
}