Configure minio, restructure manifests
This commit is contained in:
parent
0ec5aa83d5
commit
64dc13b3ad
7 changed files with 306 additions and 186 deletions
75
manifests/deployments/minio.yaml
Normal file
75
manifests/deployments/minio.yaml
Normal file
|
|
@ -0,0 +1,75 @@
|
|||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: minio-pvc
|
||||
namespace: darkdork-dev
|
||||
labels:
|
||||
app: minio
|
||||
spec:
|
||||
storageClassName: longhorn-ssd
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
resources:
|
||||
requests:
|
||||
storage:
|
||||
10Gi
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: minio
|
||||
namespace: darkdork-dev
|
||||
spec:
|
||||
ports:
|
||||
- port: 80
|
||||
name: minio
|
||||
targetPort: 9000
|
||||
protocol: TCP
|
||||
- port: 9001
|
||||
name: minio-admin
|
||||
targetPort: 9001
|
||||
protocol: TCP
|
||||
selector:
|
||||
app: minio
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: minio
|
||||
namespace: darkdork-dev
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: minio
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: minio
|
||||
spec:
|
||||
imagePullSecrets:
|
||||
- name: registry-credentials
|
||||
containers:
|
||||
- name: minio
|
||||
image: minio/minio
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 9000
|
||||
- containerPort: 9001
|
||||
env:
|
||||
- name: MINIO_ROOT_USER
|
||||
value: red
|
||||
- name: MINIO_ROOT_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: minio
|
||||
key: root-password
|
||||
args: ["server", "/data", "--console-address", ":9001"]
|
||||
volumeMounts:
|
||||
- name: minio-data-volume
|
||||
mountPath: /data
|
||||
volumes:
|
||||
- name: minio-data-volume
|
||||
persistentVolumeClaim:
|
||||
claimName: minio-pvc
|
||||
Loading…
Add table
Add a link
Reference in a new issue