my memo
kubectl
# view
$ kubectl config view
$ kubectl cluster-info
$ kubectl get namespace
# edit
$ kubectl create namespace <ns>
$ kubectl apply -n <ns> -f xxx
# config
$ kubectl config get-contexts
$ kubectl config use-context <context name>
$ kubectl config current-context
kind
$ kind get clusters
$ kind create cluster --name <cluster name> --config <yaml>
$ kind delete cluster --name <cluster name>>
# M1 mac の罠
$ kind create cluster --name xxxx --config xxx --image rossgeorgiev/kind-node-arm64:v1.21
k9s
$ k9s --readonly
$ k9s -n <namespace>
# k9s command
:ctx context list
:ns namespace list
:pod pod list
:portfoword
l log
y yaml
ctrl-d delete
docker container registory
api : Registry API
$ curl <host>:<port>/v2/_catalog
$ curl <host>:<port>/v2/<name>/tags/list
$ curl <host>:<port>/v2/<name>/manifest/<reference>
GKE
TODO
# add context
$ gcloud container clusters get-credentials
# mcs
$ kubectl describe serviceimport --context xxxx
$ kubectl describe serviceexport --context xxxx
$ kubectl get endpoints -n xxxx
$ kubectl describe endpoints -n xxxx <endpoint name>
minukube
TODO