fix infra app minio
This commit is contained in:
@@ -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
|
||||
|
||||
23
resources/app-volumes/env/k3s-cluster/Chart.yaml
vendored
Normal file
23
resources/app-volumes/env/k3s-cluster/Chart.yaml
vendored
Normal 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"
|
||||
12
resources/app-volumes/env/k3s-cluster/config.json
vendored
Normal file
12
resources/app-volumes/env/k3s-cluster/config.json
vendored
Normal 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
|
||||
}
|
||||
30
resources/app-volumes/env/k3s-cluster/templates/minio-pv.yaml
vendored
Normal file
30
resources/app-volumes/env/k3s-cluster/templates/minio-pv.yaml
vendored
Normal 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
|
||||
15
resources/app-volumes/env/k3s-cluster/templates/minio-pvc.yaml
vendored
Normal file
15
resources/app-volumes/env/k3s-cluster/templates/minio-pvc.yaml
vendored
Normal 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
|
||||
Reference in New Issue
Block a user