add infra app minio
This commit is contained in:
8
infrastructures/minio/base/kustomization.yaml
Normal file
8
infrastructures/minio/base/kustomization.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
helmCharts:
|
||||
- name: postgresql
|
||||
repo: oci://registry-1.docker.io/bitnamicharts
|
||||
version: 15.5.17
|
||||
releaseName: postgresql
|
||||
valuesFile: values.yaml
|
||||
12
infrastructures/minio/env/k3s-cluster/config.json
vendored
Normal file
12
infrastructures/minio/env/k3s-cluster/config.json
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"appName": "minio",
|
||||
"userGivenName": "minio",
|
||||
"namespace": "minio",
|
||||
"destNamespace": "minio",
|
||||
"destServer": "https://kubernetes.default.svc",
|
||||
"srcPath": "infrastructures/minio/env/k3s-cluster",
|
||||
"srcRepoURL": "https://github.com/3dwardch3ng/home-cluster-ops.git",
|
||||
"srcTargetRevision": "",
|
||||
"labels": null,
|
||||
"annotations": null
|
||||
}
|
||||
51
infrastructures/minio/env/k3s-cluster/ingress.yaml
vendored
Normal file
51
infrastructures/minio/env/k3s-cluster/ingress.yaml
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
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
|
||||
6
infrastructures/minio/env/k3s-cluster/kustomization.yaml
vendored
Normal file
6
infrastructures/minio/env/k3s-cluster/kustomization.yaml
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ./volume.yaml
|
||||
- ../../base
|
||||
- ./ingress.yaml
|
||||
18
infrastructures/minio/env/k3s-cluster/values.yaml
vendored
Normal file
18
infrastructures/minio/env/k3s-cluster/values.yaml
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
clusterDomain: minio.cluster.edward.sydney
|
||||
auth:
|
||||
existingSecret: "minio-secrets"
|
||||
rootUserSecretKey: "root_user"
|
||||
rootPasswordSecretKey: "root_password"
|
||||
nodeSelector:
|
||||
kubernetes.io/hostname: k3s-cluster-node-2
|
||||
service:
|
||||
ports:
|
||||
api: 19000
|
||||
console: 19001
|
||||
persistence:
|
||||
existingClaim: "minio-pvc"
|
||||
containerSecurityContext:
|
||||
runAsUser: 1000
|
||||
runAsGroup: 1000
|
||||
podSecurityContext:
|
||||
fsGroup: 1000
|
||||
46
infrastructures/minio/env/k3s-cluster/volume.yaml
vendored
Normal file
46
infrastructures/minio/env/k3s-cluster/volume.yaml
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
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
|
||||
23
resources/app-secrets/env/k3s-cluster/templates/minio.yaml
vendored
Normal file
23
resources/app-secrets/env/k3s-cluster/templates/minio.yaml
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
---
|
||||
apiVersion: bitnami.com/v1alpha1
|
||||
kind: SealedSecret
|
||||
metadata:
|
||||
annotations:
|
||||
sealedsecrets.bitnami.com/cluster-wide: "true"
|
||||
creationTimestamp: null
|
||||
name: minio-secrets
|
||||
namespace: minio
|
||||
spec:
|
||||
encryptedData:
|
||||
root_password: AgCrAHC60ikNh6lLAlwGMDDE6mZ4/UbNu1lN4pRULT2vkejzKY1vDy9FjWo1xcn6unFGTEZ6y8oyRM9bLcVY2J2YehGEu/ZZfIw6SMVtA92PfrcYsjbTypMfp3xXX6cPbw3LPe4U3fv1wbVugY3BIuiLTLtsrHtdlKouAe3mfzVHrFtWjnD2Rr7qFyUsK9PHgCgOEk2RoM4x7pVxkLM6jfpWS6h7OOhyBhd3s1Mhrw/JfQTxl39A4LdKBA6LFri3FtUH3840xDyYLq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A2wDWzRAqqRrTMXcgxHbJOoqb0vgHlHNDXzuBanxP+OkalKv/xKY9tH7TKsqq2uRYoZMcQ2mYS1XgY4i1uhzt1aLYWbouANioJsfRgg==
|
||||
template:
|
||||
metadata:
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-options: Prune=false
|
||||
sealedsecrets.bitnami.com/cluster-wide: "true"
|
||||
sealedsecrets.bitnami.com/managed: "true"
|
||||
creationTimestamp: null
|
||||
name: minio-secrets
|
||||
namespace: minio
|
||||
type: Opaque
|
||||
Reference in New Issue
Block a user