Install Minio on OKD4x

From Bitbull Wiki
Jump to navigation Jump to search

1 Tested with

  • Server Version: 4.7.0
  • Kubernetes Version: v1.20.0

2 Install Template

oc apply -n openshift -f

3 Deploy Minio

oc new-project $PROJECT
oc process --parameters -n openshift minio
oc process -n openshift minio | oc create -f -
oc create serviceaccount anyuid
oc adm policy add-scc-to-user anyuid -z anyuid
oc patch statefulset.apps/minio --patch '{"spec":{"template":{"spec":{"serviceAccountName": "anyuid"}}}}'
oc get pods
oc delete pod/minio-0
oc delete route minio
oc create route edge --service=minio
kubectl get secret minio-keys -o jsonpath='{.data.access-key}' | base64 --decode
kubectl get secret minio-keys -o jsonpath='{.data.secret-key}' | base64 --decode