Giriş
Kind runs a local kubernetes cluster in Docker container and is an effective use to manage local kubernetes cluster deployment. The other alternative for local k8s cluster management is minikube...
create seçeneği
Örnek
kind create cluster --name local-dev
Örnek -- config
Elimizde şöyle bir yaml
olsunkind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
extraPortMappings:
- containerPort: 31234
hostPort: 8080
protocol: TCP
kind create cluster --name local-dev --config k8s-cluster-config.yaml
delete seçeneği
Örnek
kind delete cluster --name local-dev
get clusters seçeneği
Örnek
$kind get clusters
local-dev
get services seçeneği
Örnek
$kubectl get services
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 5m53s
Hiç yorum yok:
Yorum Gönder