debugger pod for minio - cniackz/public GitHub Wiki

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.
⚠️ **GitHub.com Fallback** ⚠️