Diferencias
Muestra las diferencias entre dos versiones de la página.
Ambos lados, revisión anterior Revisión previa Próxima revisión | Revisión previa | ||
docs:virtualizacion:docker:kops_cluster_mamagement [2018/08/25 23:05] – rodolfo | docs:virtualizacion:docker:kops_cluster_mamagement [2020/04/08 21:59] (actual) – borrado rodolfo | ||
---|---|---|---|
Línea 1: | Línea 1: | ||
- | ====== kops cluster management ====== | ||
- | |||
- | ===== Create cluster ===== | ||
- | |||
- | Previous: | ||
- | |||
- | export NAME=myfirstcluster.k8s.local | ||
- | export KOPS_STATE_STORE=s3:// | ||
- | |||
- | $ ssh-keygen -t rsa -f / | ||
- | |||
- | Create cluster config (S3 store) | ||
- | |||
- | $ kops create cluster --zones us-west-2a ${NAME} | ||
- | |||
- | $ kops create secret --name myfirstcluster.k8s.local sshpublickey admin -i ~/ | ||
- | |||
- | Build: | ||
- | |||
- | $ kops update cluster ${NAME} --yes | ||
- | | ||
- | Cluster is starting. | ||
- | | ||
- | Suggestions: | ||
- | * validate cluster: kops validate cluster | ||
- | * list nodes: kubectl get nodes --show-labels | ||
- | * ssh to the master: ssh -i ~/ | ||
- | * the admin user is specific to Debian. If not using Debian please use the appropriate user based on your OS. | ||
- | * read about installing addons at: https:// | ||
- | |||
- | |||
- | $ kops validate cluster | ||
- | Using cluster from kubectl context: myfirstcluster.k8s.local | ||
- | | ||
- | Validating cluster myfirstcluster.k8s.local | ||
- | | ||
- | INSTANCE GROUPS | ||
- | NAME ROLE MACHINETYPE MIN MAX SUBNETS | ||
- | master-us-west-2a Master m3.medium 1 1 us-west-2a | ||
- | nodes Node t2.medium 2 2 us-west-2a | ||
- | | ||
- | NODE STATUS | ||
- | NAME ROLE READY | ||
- | ip-172-20-32-120.us-west-2.compute.internal master True | ||
- | ip-172-20-51-89.us-west-2.compute.internal node True | ||
- | ip-172-20-58-56.us-west-2.compute.internal node True | ||
- | | ||
- | Your cluster myfirstcluster.k8s.local is ready | ||
- | |||
- | $ kubectl get nodes | ||
- | NAME STATUS | ||
- | ip-172-20-32-120.us-west-2.compute.internal | ||
- | ip-172-20-51-89.us-west-2.compute.internal | ||
- | ip-172-20-58-56.us-west-2.compute.internal | ||
- | |||
- | $ kubectl cluster-info | ||
- | Kubernetes master is running at https:// | ||
- | KubeDNS is running at https:// | ||
- | | ||
- | To further debug and diagnose cluster problems, use ' | ||
- | |||
- | |||
- | ===== Delete cluster ===== | ||
- | |||
- | Preview: | ||
- | |||
- | $ kops delete cluster --name ${NAME} | ||
- | |||
- | Apply changes: | ||
- | |||
- | $ kops delete cluster --name ${NAME} --yes | ||
- | |||
- | ===== Referencias ===== | ||
- | |||
- | * [[https:// | ||
- | * [[https:// | ||
- | |||