diff --git a/infrastructures/minio/env/k3s-cluster/Chart.yaml b/infrastructures/minio/env/k3s-cluster/Chart.yaml deleted file mode 100644 index 3cd369e..0000000 --- a/infrastructures/minio/env/k3s-cluster/Chart.yaml +++ /dev/null @@ -1,23 +0,0 @@ -apiVersion: v2 -name: minio -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: 14.6.24 - -# 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: 2024.7.16 diff --git a/infrastructures/minio/env/k3s-cluster/templates/ingress.yaml b/infrastructures/minio/env/k3s-cluster/templates/ingress.yaml deleted file mode 100644 index b222bff..0000000 --- a/infrastructures/minio/env/k3s-cluster/templates/ingress.yaml +++ /dev/null @@ -1,51 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - name: minio-ingress - namespace: minio - annotations: - nginx.ingress.kubernetes.io/ssl-redirect: "false" - nginx.ingress.kubernetes.io/use-regex: "true" -spec: - ingressClassName: nginx - rules: - - host: "minio.cluster.edward.sydney" - http: - paths: - - pathType: Prefix - path: "/" - backend: - service: - name: minio - port: - number: 19001 - - host: "api.minio.cluster.edward.sydney" - http: - paths: - - pathType: Prefix - path: "/" - backend: - service: - name: minio - port: - number: 19000 - - host: "minio.cluster.local" - http: - paths: - - pathType: Prefix - path: "/" - backend: - service: - name: minio - port: - number: 19001 - - host: "api.minio.cluster.local" - http: - paths: - - pathType: Prefix - path: "/" - backend: - service: - name: minio - port: - number: 19000 \ No newline at end of file diff --git a/infrastructures/minio/env/k3s-cluster/templates/volume.yaml b/infrastructures/minio/env/k3s-cluster/templates/volume.yaml deleted file mode 100644 index 9aa1dfc..0000000 --- a/infrastructures/minio/env/k3s-cluster/templates/volume.yaml +++ /dev/null @@ -1,46 +0,0 @@ -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: - - rpi5-cluster-node-2 ---- -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 diff --git a/infrastructures/minio/env/k3s-cluster/values.yaml b/infrastructures/minio/env/k3s-cluster/values.yaml index fabf293..c8bab8a 100644 --- a/infrastructures/minio/env/k3s-cluster/values.yaml +++ b/infrastructures/minio/env/k3s-cluster/values.yaml @@ -9,8 +9,24 @@ service: ports: api: 19000 console: 19001 +ingress: + enabled: true + ingressClassName: "nginx" + hostname: "minio.cluster.edward.sydney" +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: - existingClaim: "minio-pvc" + storageClass: "-" containerSecurityContext: runAsUser: 1000 runAsGroup: 1000