fix infra app minio

This commit is contained in:
2024-07-18 22:30:47 +10:00
parent 1413982fa2
commit a699b57db9
5 changed files with 81 additions and 10 deletions

View File

@@ -18,17 +18,8 @@ apiIngress:
enabled: true
ingressClassName: "nginx"
hostname: "api.minio.cluster.edward.sydney"
extraVolumes:
- name: minio-data
hostPath:
path: /mnt/nfs/AppData/minio
type: Directory
extraVolumeMounts:
- name: minio-data
mountPath: /bitnami/minio/data
persistence:
enabled: false
storageClass: "-"
existingClaim: "minio-pvc"
containerSecurityContext:
runAsUser: 1000
runAsGroup: 1000

View File

@@ -0,0 +1,23 @@
apiVersion: v2
name: app-volumes
description: Applications
# A chart can be either an 'application' or a 'library' chart.
#
# Application charts are a collection of templates that can be packaged into versioned archives
# to be deployed.
#
# Library charts provide useful utilities or functions for the chart developer. They're included as
# a dependency of application charts to inject those utilities and functions into the rendering
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
appVersion: "0.0.1"

View File

@@ -0,0 +1,12 @@
{
"appName": "app-volumes",
"userGivenName": "app-volumes",
"namespace": "app-volumes",
"destNamespace": "app-volumes",
"destServer": "https://kubernetes.default.svc",
"srcPath": "resources/app-volumes/env/k3s-cluster",
"srcRepoURL": "https://github.com/3dwardch3ng/home-cluster-ops.git",
"srcTargetRevision": "",
"labels": null,
"annotations": null
}

View File

@@ -0,0 +1,30 @@
apiVersion: v1
kind: PersistentVolume
metadata:
name: minio-pv
namespace: minio
labels:
type: local
spec:
storageClassName: local-path
volumeMode: Filesystem
capacity:
storage: 256Gi
accessModes:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Retain
local:
path: "/mnt/nfs/AppData/minio"
claimRef:
apiVersion: v1
kind: PersistentVolumeClaim
name: minio-pvc
namespace: minio
nodeAffinity:
required:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- k3s-cluster-node-2

View File

@@ -0,0 +1,15 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: minio-pvc
namespace: minio
labels:
name: minio-pvc
spec:
storageClassName: local-path
volumeMode: Filesystem
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 256Gi