Skip to content

Some How-Tos i found helpful - #109

Open
hc2p wants to merge 2 commits into
kubermatic:masterfrom
hc2p:add-some-howtos
Open

Some How-Tos i found helpful#109
hc2p wants to merge 2 commits into
kubermatic:masterfrom
hc2p:add-some-howtos

Conversation

@hc2p

@hc2p hc2p commented Nov 1, 2023

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:
I had to do some chores which were quite cumbersome. I hope these will help future me and others.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

@kubermatic-bot kubermatic-bot added the dco-signoff: yes Denotes that all commits in the pull request have the valid DCO signoff message. label Nov 1, 2023
@kubermatic-bot

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign toschneck for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubermatic-bot kubermatic-bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Nov 1, 2023

@toschneck toschneck left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hc2p I have maybe a small improvement with the use of the mc container

kubectl -n minio apply -f pvc.yaml
```

## Start debug container on cluster

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you could use directly the minio image as well, I using locally ofte

docker run --rm -it --network host -v "`PWD`":/data -e MC_HOST_minio=https://___ACCESS__KEX___:___SECRET_ACCESS_KEY____@minio.run-2.lab.kubermatic.io --name run-2-mc --entrypoint bash minio/mc

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hm, i tried it but struggled to get into a shell, which is actually more convenient to do all the steps. Would be much better than needing to install something

## Setup alias

```bash
mc alias set ALIAS http://minio:9000 <access-key> <access-secret>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

se above example could also get injected via env var ... just FYI

@toschneck

Copy link
Copy Markdown
Member

@hc2p I would suggest we directly move this to our docs under https://docs.kubermatic.com/kubermatic/main/cheat-sheets/
What do you think?

Signed-off-by: Hannes Probst <hannes@kubermatic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dco-signoff: yes Denotes that all commits in the pull request have the valid DCO signoff message. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants