Skip to content

Instantly share code, notes, and snippets.

@crobby
Last active July 12, 2022 13:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save crobby/0f581d81da4852a07e2fe493cd04c01e to your computer and use it in GitHub Desktop.
Save crobby/0f581d81da4852a07e2fe493cd04c01e to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Service
metadata:
name: minio
spec:
ports:
- name: minio-client-port
port: 9000
protocol: TCP
targetPort: 9000
selector:
app: minio
---
apiVersion: v1
kind: Pod
metadata:
labels:
app: minio
maistra.io/expose-route: 'true'
annotations:
sidecar.istio.io/inject: 'true'
name: minio
spec:
containers:
- args:
- server
# - /data
- /data1
env:
- name: MINIO_ACCESS_KEY
value: THEACCESSKEY
- name: MINIO_SECRET_KEY
value: <secretkey>
# image: quay.io/cloudservices/minio:latest
image: quay.io/opendatahub/modelmesh-minio-examples:v0.8.0
name: minio
---
apiVersion: v1
kind: Secret
metadata:
name: storage-config
stringData:
localMinIO: |
{
"type": "s3",
"access_key_id": "THEACCESSKEY",
"secret_access_key": "<secretkey>",
"endpoint_url": "http://minio:9000",
"default_bucket": "modelmesh-example-models",
"region": "us-south"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment