Skip to content

Commit

Permalink
feat: add MinIO deployment files
Browse files Browse the repository at this point in the history
  • Loading branch information
mjugl committed Feb 22, 2024
1 parent cbb05c7 commit 6f20775
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 0 deletions.
2 changes: 2 additions & 0 deletions k8s/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ $ kubectl apply -f ghcr-secret.yaml
To deploy, simply run the following commands.

```
$ kubectl apply -f ./minio-deployment.yaml
$ kubectl apply -f ./minio-service.yaml
$ kubectl apply -f ./node-result-deployment.yaml
$ kubectl apply -f ./node-result-service.yaml
```
28 changes: 28 additions & 0 deletions k8s/minio-deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: local-minio-deployment
spec:
replicas: 1
selector:
matchLabels:
app: minio
template:
metadata:
labels:
app: minio
spec:
containers:
- name: local-minio
image: bitnami/minio:2024.1.16
imagePullPolicy: IfNotPresent
ports:
- containerPort: 9000
name: http-s3
env:
- name: MINIO_ROOT_USER
value: admin
- name: MINIO_ROOT_PASSWORD
value: s3cr3t_p4ssw0rd
- name: MINIO_DEFAULT_BUCKETS
value: flame
12 changes: 12 additions & 0 deletions k8s/minio-service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: local-minio-service
spec:
type: NodePort # setting nodePort later is optional
selector:
app: minio
ports:
- protocol: TCP
port: 9000 # port of this service
targetPort: http-s3 # port on the pod
11 changes: 11 additions & 0 deletions k8s/node-result-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,16 @@ spec:
ports:
- containerPort: 8080
name: http-result-srv
env:
- name: MINIO__ENDPOINT
value: local-minio
- name: MINIO__ACCESS_KEY
value: admin
- name: MINIO__SECRET_KEY
value: s3cr3t_p4ssw0rd
- name: MINIO__USE_SSL
value: false
- name: MINIO__BUCKET
value: flame
imagePullSecrets:
- name: dockerconfigjson-github-com

0 comments on commit 6f20775

Please sign in to comment.