add app nexus
This commit is contained in:
38
apps/nexus/base/deployment.yaml
Normal file
38
apps/nexus/base/deployment.yaml
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: nexus
|
||||||
|
namespace: nexus
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: nexus
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: nexus
|
||||||
|
spec:
|
||||||
|
securityContext:
|
||||||
|
runAsUser: 0
|
||||||
|
runAsGroup: 0
|
||||||
|
containers:
|
||||||
|
- name: nexus
|
||||||
|
image: klo2k/nexus3:3.68.1-02
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
memory: "3Gi"
|
||||||
|
cpu: "1"
|
||||||
|
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
|
||||||
3
apps/nexus/base/kustomization.yaml
Normal file
3
apps/nexus/base/kustomization.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources: []
|
||||||
17
apps/nexus/base/service.yaml
Normal file
17
apps/nexus/base/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
|
||||||
11
apps/nexus/env/k3s-cluster/config.json
vendored
Normal file
11
apps/nexus/env/k3s-cluster/config.json
vendored
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"appName": "nexus",
|
||||||
|
"userGivenName": "nexus",
|
||||||
|
"destNamespace": "nexus",
|
||||||
|
"destServer": "https://kubernetes.default.svc",
|
||||||
|
"srcPath": "apps/nexus/env/k3s-cluster",
|
||||||
|
"srcRepoURL": "https://github.com/3dwardch3ng/home-cluster-ops.git",
|
||||||
|
"srcTargetRevision": "",
|
||||||
|
"labels": null,
|
||||||
|
"annotations": null
|
||||||
|
}
|
||||||
4
apps/nexus/env/k3s-cluster/kustomization.yaml
vendored
Normal file
4
apps/nexus/env/k3s-cluster/kustomization.yaml
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- ../../base
|
||||||
Reference in New Issue
Block a user