diff --git a/infrastructures/minio/env/k3s-cluster/values.yaml b/infrastructures/minio/env/k3s-cluster/values.yaml index 79afe06..559b87c 100644 --- a/infrastructures/minio/env/k3s-cluster/values.yaml +++ b/infrastructures/minio/env/k3s-cluster/values.yaml @@ -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 diff --git a/resources/app-volumes/env/k3s-cluster/Chart.yaml b/resources/app-volumes/env/k3s-cluster/Chart.yaml new file mode 100644 index 0000000..913440b --- /dev/null +++ b/resources/app-volumes/env/k3s-cluster/Chart.yaml @@ -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" diff --git a/resources/app-volumes/env/k3s-cluster/config.json b/resources/app-volumes/env/k3s-cluster/config.json new file mode 100644 index 0000000..b0ed8c7 --- /dev/null +++ b/resources/app-volumes/env/k3s-cluster/config.json @@ -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 +} \ No newline at end of file diff --git a/resources/app-volumes/env/k3s-cluster/templates/minio-pv.yaml b/resources/app-volumes/env/k3s-cluster/templates/minio-pv.yaml new file mode 100644 index 0000000..bb99b46 --- /dev/null +++ b/resources/app-volumes/env/k3s-cluster/templates/minio-pv.yaml @@ -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 \ No newline at end of file diff --git a/resources/app-volumes/env/k3s-cluster/templates/minio-pvc.yaml b/resources/app-volumes/env/k3s-cluster/templates/minio-pvc.yaml new file mode 100644 index 0000000..91dfa18 --- /dev/null +++ b/resources/app-volumes/env/k3s-cluster/templates/minio-pvc.yaml @@ -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 \ No newline at end of file