K8sのトレーニングに参加した

最終更新日
公開日

Kubernetes Upstream Training in Japan at CNDW2024

目次

イベントページ:

https://community.cncf.io/events/details/cncf-cloud-native-community-japan-presents-joint-meetup-kubernetes-upstream-training-in-japan-at-cndw2024/

講義

コミュニティについて,K8sの独自ラベルやコマンド,メンバーのあれこれ,開発環境,などを解説してもらった.

ハンズオン

CNCF(Cloud Native Computing Foundation) のCLA認証したり, K8sの独自コマンドを色々試したり

https://github.com/kubernetes-sigs/contributor-playground/pull/1574

gitコマンドについても勉強になった. 以下がK8sプロジェクトにおける基本の流れ

# GitHubのWebアプリでFork
git clone <fork repo>
git remote add upstream <upstream repo>
git remote set-url --push upstream no_push # upstreamへの直接pushを禁止

git switch master
git fetch upstream # upstreamの情報を取得
git rebase upstream/master # 現在いるブランチ(master)をupstream/masterと統合(rebase)
# c.f. rebaseとmergeの違い
git checkout -b <my-branch> # 忘れない(一敗)
# 色々やる
git add
git commit
git fetch upstream
git rebase upstream/master # 現在いるブランチ(my-branch)をupstream/masterと統合(rebase)
git push origin <my-branch>
# GitHubのWebアプリでPRを出す

masterブランチで作業しちゃったときの対処法 は別記事でまとめた.

後日談

講師の方が初心者向けのissueを作成してくれたので,さっそくPRを出してみた

https://github.com/kubernetes/website/pull/48878

やっぱり,手を動かしてみるのが一番勉強になる.

謝辞

講師の皆様,貴重な機会をありがとうございました.