chore(apps): add single-node minio
This commit is contained in:
parent
ff09cd38b1
commit
e3cb15780e
4 changed files with 59 additions and 0 deletions
4
apps/minio/base/kustomization.yaml
Normal file
4
apps/minio/base/kustomization.yaml
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- ./minio-dev.yaml
|
||||||
40
apps/minio/base/minio-dev.yaml
Normal file
40
apps/minio/base/minio-dev.yaml
Normal file
|
|
@ -0,0 +1,40 @@
|
||||||
|
# Deploys a new Namespace for the MinIO Pod
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: minio-dev # Change this value if you want a different namespace name
|
||||||
|
labels:
|
||||||
|
name: minio-dev # Change this value to match metadata.name
|
||||||
|
---
|
||||||
|
# Deploys a new MinIO Pod into the metadata.namespace Kubernetes namespace
|
||||||
|
#
|
||||||
|
# The `spec.containers[0].args` contains the command run on the pod
|
||||||
|
# The `/data` directory corresponds to the `spec.containers[0].volumeMounts[0].mountPath`
|
||||||
|
# That mount path corresponds to a Kubernetes HostPath which binds `/data` to a local drive or volume on the worker node where the pod runs
|
||||||
|
#
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Pod
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: minio
|
||||||
|
name: minio
|
||||||
|
namespace: minio-dev # Change this value to match the namespace metadata.name
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: minio
|
||||||
|
image: quay.io/minio/minio:latest
|
||||||
|
command:
|
||||||
|
- /bin/bash
|
||||||
|
- -c
|
||||||
|
args:
|
||||||
|
- minio server /data --console-address :9090
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /data
|
||||||
|
name: localvolume # Corresponds to the `spec.volumes` Persistent Volume
|
||||||
|
nodeSelector:
|
||||||
|
kubernetes.io/hostname: elli # Specify a node label associated to the Worker Node on which you want to deploy the pod.
|
||||||
|
volumes:
|
||||||
|
- name: localvolume
|
||||||
|
hostPath: # MinIO generally recommends using locally-attached volumes
|
||||||
|
path: /storage/local-k8s/minio # Specify a path to a local drive or volume on the Kubernetes worker node
|
||||||
|
type: DirectoryOrCreate # The path to the last directory must exist
|
||||||
11
apps/minio/overlays/system/config.json
Normal file
11
apps/minio/overlays/system/config.json
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
"appName": "minio",
|
||||||
|
"userGivenName": "minio",
|
||||||
|
"destNamespace": "minio-dev",
|
||||||
|
"destServer": "https://kubernetes.default.svc",
|
||||||
|
"srcPath": "apps/minio/overlays/system",
|
||||||
|
"srcRepoURL": "ssh://git@gitea-ssh.gitops.svc.cluster.local:2222/davad/argo.git",
|
||||||
|
"srcTargetRevision": "",
|
||||||
|
"labels": null,
|
||||||
|
"annotations": null
|
||||||
|
}
|
||||||
4
apps/minio/overlays/system/kustomization.yaml
Normal file
4
apps/minio/overlays/system/kustomization.yaml
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- ../../base
|
||||||
Loading…
Add table
Add a link
Reference in a new issue