Skip to content

debugger pod for minio

Cesar Celis Hernandez edited this page Aug 18, 2023 · 1 revision

Objective:

To show how to use a debugger pod for minio

Steps:

  1. Create the pod:
  • File name: debugger-pod.yaml
apiVersion: v1
kind: Pod
metadata:
  name: mc
  labels:
    app: mc
spec:
  containers:
  - image: minio/mc:latest
    command:
      - "sleep"
      - "604800"
    imagePullPolicy: IfNotPresent
    name: mc
  restartPolicy: Always

Apply it:

k apply -f debugger-pod.yaml
  1. Access the pod once is ready:
$ kubectl exec -i -t -n default mc -c mc -- sh -c "(bash || ash || sh)"
[root@mc /]# 
  1. Then with mc you can access your tenant:
[root@mc /]# mc alias set myminio <URL> <USER> <PASSWORD> --insecure
Added `myminio` successfully.
Clone this wiki locally