-
Notifications
You must be signed in to change notification settings - Fork 0
How to change the minio port in k8s
Cesar Celis Hernandez edited this page Aug 18, 2023
·
2 revisions
To change the minio port in k8s
-
Have a cluster
-
Have MinIO Operator installed
-
Have a Tenant deployed already
-
Change MinIO service port from
443
to6000
:
k edit service minio -n <tenant-namespace>
apiVersion: v1
kind: Service
metadata:
name: minio
spec:
ports:
- name: https-minio
protocol: TCP
port: 6000 <---------- You can change the service port to use this for your applications.
targetPort: 9000 <---- This is the target port as MinIO Pods are using 9000
-
Expose the service via NodePort, Port-Forward, Ingress or any other mechanism.
-
Access the minio by creating an alias using port
6000
:
$ mc alias set myminio https://localhost:6000 minio minio123 --insecure
Added `myminio` successfully.
If your apps, requires other port than 443, you can address that by changing the minio service to any desired port.