Compare commits
2 Commits
cd4269e485
...
8fc1165cc0
| Author | SHA1 | Date | |
|---|---|---|---|
| 8fc1165cc0 | |||
| 72be4562ec |
@@ -9,6 +9,7 @@ resources:
|
|||||||
- ./homer/homer.yaml
|
- ./homer/homer.yaml
|
||||||
- ./jellyfin/jellyfin.yaml
|
- ./jellyfin/jellyfin.yaml
|
||||||
- ./kavita/kavita.yaml
|
- ./kavita/kavita.yaml
|
||||||
|
- ./nexus/nexus.yaml
|
||||||
- ./podinfo/podinfo.yaml
|
- ./podinfo/podinfo.yaml
|
||||||
- ./postgresql/postgresql.yaml
|
- ./postgresql/postgresql.yaml
|
||||||
- ./qbittorrent/qbittorrent.yaml
|
- ./qbittorrent/qbittorrent.yaml
|
||||||
|
|||||||
35
kubernetes/apps/nexus/app/deployment.yaml
Normal file
35
kubernetes/apps/nexus/app/deployment.yaml
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: nexus
|
||||||
|
namespace: nexus
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: nexus
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: nexus
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: nexus
|
||||||
|
image: sonatype/nexus3:latest
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
memory: "4Gi"
|
||||||
|
cpu: "1000m"
|
||||||
|
requests:
|
||||||
|
memory: "2Gi"
|
||||||
|
cpu: "500m"
|
||||||
|
ports:
|
||||||
|
- containerPort: 8081
|
||||||
|
volumeMounts:
|
||||||
|
- name: nexus-data
|
||||||
|
mountPath: /nexus-data
|
||||||
|
volumes:
|
||||||
|
- name: nexus-data
|
||||||
|
hostPath:
|
||||||
|
path: /mnt/nfs/AppData/nexus
|
||||||
|
type: Directory
|
||||||
32
kubernetes/apps/nexus/app/ingress.yaml
Normal file
32
kubernetes/apps/nexus/app/ingress.yaml
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: nexus-ingress
|
||||||
|
namespace: nexus
|
||||||
|
annotations:
|
||||||
|
nginx.ingress.kubernetes.io/ssl-redirect: "false"
|
||||||
|
nginx.ingress.kubernetes.io/use-regex: "true"
|
||||||
|
nginx.ingress.kubernetes.io/proxy-body-size: "50m"
|
||||||
|
spec:
|
||||||
|
ingressClassName: nginx
|
||||||
|
rules:
|
||||||
|
- host: "nexus.cluster.local"
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- pathType: Prefix
|
||||||
|
path: "/"
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: nexus
|
||||||
|
port:
|
||||||
|
number: 32000
|
||||||
|
- host: "nexus.cluster.edward.sydney"
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- pathType: Prefix
|
||||||
|
path: "/"
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: nexus
|
||||||
|
port:
|
||||||
|
number: 32000
|
||||||
17
kubernetes/apps/nexus/app/service.yaml
Normal file
17
kubernetes/apps/nexus/app/service.yaml
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: nexus
|
||||||
|
namespace: nexus
|
||||||
|
annotations:
|
||||||
|
prometheus.io/scrape: 'true'
|
||||||
|
prometheus.io/path: /
|
||||||
|
prometheus.io/port: '8081'
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: nexus
|
||||||
|
type: NodePort
|
||||||
|
ports:
|
||||||
|
- port: 8081
|
||||||
|
targetPort: 8081
|
||||||
|
nodePort: 32000
|
||||||
15
kubernetes/apps/nexus/nexus.yaml
Normal file
15
kubernetes/apps/nexus/nexus.yaml
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||||
|
kind: Kustomization
|
||||||
|
metadata:
|
||||||
|
name: nexus
|
||||||
|
namespace: nexus
|
||||||
|
spec:
|
||||||
|
interval: 10m
|
||||||
|
timeout: 1m30s
|
||||||
|
retryInterval: 30s
|
||||||
|
path: ./kubernetes/apps/nexus/app
|
||||||
|
prune: true
|
||||||
|
sourceRef:
|
||||||
|
kind: GitRepository
|
||||||
|
namespace: flux-system
|
||||||
|
name: flux-system
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: nexus
|
||||||
Reference in New Issue
Block a user