Skip to content

Instantly share code, notes, and snippets.

@welshstew
Created January 28, 2022 10:20
Show Gist options
  • Save welshstew/a067e793628ea9407e44fa1f8f88c3d4 to your computer and use it in GitHub Desktop.
Save welshstew/a067e793628ea9407e44fa1f8f88c3d4 to your computer and use it in GitHub Desktop.
Simple minio openshift deploy
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: home-claim
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 8Gi
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: minio-config-claim
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 8Gi
---
apiVersion: v1
kind: Service
metadata:
name: minio-console
spec:
type: ClusterIP
selector:
app: minio-server
ports:
- name: web
port: 80
targetPort: 9001
---
apiVersion: v1
kind: Service
metadata:
name: minio-api
spec:
type: ClusterIP
selector:
app: minio-server
ports:
- name: api
port: 9000
targetPort: 9000
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: minio-server
spec:
selector:
matchLabels:
app: minio-server
template:
metadata:
labels:
app: minio-server
spec:
containers:
- name: minio
env:
- name: MINIO_ROOT_USER
value: minioadmin
- name: MINIO_ROOT_PASSWORD
value: minioadmin
image: minio/minio
args: ["server", "/data", "--console-address", ":9001"]
ports:
- containerPort: 9000
protocol: TCP
name: api
- containerPort: 9001
protocol: TCP
name: web
volumeMounts:
- name: home
mountPath: /data
- name: config
mountPath: /root/.minio
volumes:
- name: home
persistentVolumeClaim:
claimName: home-claim
- name: config
persistentVolumeClaim:
claimName: minio-config-claim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment