Skip to content

Instantly share code, notes, and snippets.

@jovemfelix
Created August 25, 2022 12:59
Show Gist options
  • Save jovemfelix/d79484c0e067b4ed5ad690bcad304580 to your computer and use it in GitHub Desktop.
Save jovemfelix/d79484c0e067b4ed5ad690bcad304580 to your computer and use it in GitHub Desktop.
## Reference: https://github.com/jovemfelix/sno-minio-deployment
---
#NAME: minio
#LAST DEPLOYED: Thu Aug 25 08:55:33 2022
#NAMESPACE: minio
#STATUS: pending-install
#REVISION: 1
#TEST SUITE: None
#HOOKS:
#MANIFEST:
---
# Source: sno-minio-deployment/templates/secret.yaml
apiVersion: v1
kind: Secret
metadata:
name: minio-creds
labels:
app: minio
stringData:
MINIO_ROOT_USER: "minio"
MINIO_ROOT_PASSWORD: "minio123"
---
# Source: sno-minio-deployment/templates/pvc.yaml
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: minio-pvc
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi
---
# Source: sno-minio-deployment/templates/services.yaml
apiVersion: v1
kind: Service
metadata:
name: minio
spec:
ports:
- protocol: TCP
name: minio
port: 9000
selector:
app: minio
---
# Source: sno-minio-deployment/templates/services.yaml
apiVersion: v1
kind: Service
metadata:
name: minio-console
spec:
ports:
- protocol: TCP
name: minio-console
port: 9001
selector:
app: minio
---
# Source: sno-minio-deployment/templates/deployment.yaml
kind: Deployment
apiVersion: apps/v1
metadata:
name: minio
labels:
app: minio
spec:
replicas: 1
selector:
matchLabels:
app: minio
template:
metadata:
labels:
app: minio
spec:
containers:
- name: minio
image: "quay.io/minio/minio:RELEASE.2022-08-02T23-59-16Z"
args: ['server', '/data', '--console-address', ':9001']
ports:
- name: minio
containerPort: 9000
volumeMounts:
- name: minio-volume
mountPath: /data
env:
- name: MINIO_SERVER_URL
value: "https://minio.apps.example.com.br"
- name: MINIO_BROWSER_REDIRECT_URL
value: "https://minio-console.apps.example.com.br"
- name: MINIO_ROOT_USER
valueFrom:
secretKeyRef:
name: minio-creds
key: MINIO_ROOT_USER
- name: MINIO_ROOT_PASSWORD
valueFrom:
secretKeyRef:
name: minio-creds
key: MINIO_ROOT_PASSWORD
volumes:
- name: minio-volume
persistentVolumeClaim:
claimName: minio-pvc
---
# Source: sno-minio-deployment/templates/ingress.yaml
#apiVersion: networking.k8s.io/v1
#kind: Ingress
#metadata:
# name: minio
# annotations:
# route.openshift.io/termination: edge
#spec:
# rules:
# - host: "minio.apps.example.com.br"
# http:
# paths:
# - path: /
# pathType: Prefix
# backend:
# service:
# name: minio
# port:
# number: 9000
kind: Route
apiVersion: route.openshift.io/v1
metadata:
name: minio
spec:
host: minio.apps.example.com.br
to:
kind: Service
name: minio
weight: 100
port:
targetPort: minio
tls:
termination: edge
insecureEdgeTerminationPolicy: Allow
wildcardPolicy: None
---
# Source: sno-minio-deployment/templates/ingress.yaml
#apiVersion: networking.k8s.io/v1
#kind: Ingress
#metadata:
# name: minio-console
# annotations:
# route.openshift.io/termination: edge
#spec:
# rules:
# - host: "minio-console.apps.example.com.br"
# http:
# paths:
# - path: /
# pathType: Prefix
# backend:
# service:
# name: minio-console
# port:
# number: 9001
kind: Route
apiVersion: route.openshift.io/v1
metadata:
name: minio-console
spec:
host: minio-console.apps.example.com.br
to:
kind: Service
name: minio-console
weight: 100
port:
targetPort: minio-console
tls:
termination: edge
insecureEdgeTerminationPolicy: Allow
wildcardPolicy: None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment