Restructure yaml, add CI/CD pipelines
This commit is contained in:
parent
fc1bf0bb9a
commit
fd7d99d29a
31 changed files with 771 additions and 543 deletions
42
manifests/minio/deployment.yaml
Normal file
42
manifests/minio/deployment.yaml
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
---
|
||||
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
|
||||
---
|
||||
28
manifests/minio/ingress.yaml
Normal file
28
manifests/minio/ingress.yaml
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: minio
|
||||
namespace: darkdork-dev
|
||||
annotations:
|
||||
cert-manager.io/issuer: "letsencrypt-prod"
|
||||
nginx.ingress.kubernetes.io/rewrite-target: /pleroma.darkdork.dev/$1
|
||||
nginx.ingress.kubernetes.io/proxy-body-size: 64m
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
tls:
|
||||
- hosts:
|
||||
- media.darkdork.dev
|
||||
secretName: tls-secret-media
|
||||
rules:
|
||||
- host: media.darkdork.dev
|
||||
http:
|
||||
paths:
|
||||
- path: /(.+)
|
||||
pathType: ImplementationSpecific
|
||||
backend:
|
||||
service:
|
||||
name: minio
|
||||
port:
|
||||
number: 80
|
||||
---
|
||||
17
manifests/minio/pvc.yaml
Normal file
17
manifests/minio/pvc.yaml
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: minio-pvc
|
||||
namespace: darkdork-dev
|
||||
labels:
|
||||
app: minio
|
||||
spec:
|
||||
storageClassName: longhorn-ssd
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
resources:
|
||||
requests:
|
||||
storage:
|
||||
10Gi
|
||||
---
|
||||
19
manifests/minio/service.yaml
Normal file
19
manifests/minio/service.yaml
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
---
|
||||
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
|
||||
---
|
||||
Loading…
Add table
Add a link
Reference in a new issue