Kubernetes quickstart on Google Cloud
In this video I want to show you how easy it is to deploy a GKE (Google Kubernetes Engine) Cluster, and deploy a "Hello, world!" application. If you are interested to learn more about K8s (kubernetes) check out my other videos, I will definitely create more tutorials. For official documentation visit: https://kubernetes.io/docs/home/
In this video I used few commands to deploy my resources, the commands are:
1) Create a deployment called hello-world using the image gcr.io/google-samples/hello-app:1.0
kubectl create deployment hello-world --image=gcr.io/google-samples/hello-app:1.0
2) Verify my deployment/all resources:
kubectl get deployments
kubectl get all
kubectl get pods
kubectl get pods -o wide # more detailed output
3) Scale my deployment to 3 replicas:
kubectl scale deployment hello-world --replicas=3
4) Expose (create a Service) my deployment with LoadBalancer:
kubectl expose deployment hello-world --type LoadBalancer --port 80 --target-port 8080
5) Verify the service configuration
kubectl get services
6) To delete a resource (for example a pod)
kubectl delete pod _name_of_pod_
That's one way you can manage your Kubernetes resources, and it's called Imperative approach. In more complex configuration I suggest to read about Declarative approach, when you create a configuration files (YAML files), in which you describe what state of your environment you wish to have, and by applying the command, Kubernetes will configure the desired state for you.
So instead of saying:
"hey K8s, create a deployment, expose a deployment, scale it"
You can say:
"hey K8s, I want to have a deployment with LoadBalancer service, scaled to 3 replicas".
You can read more about that approach here: https://kubernetes.io/docs/tasks/manage-kubernetes-objects/declarative-config/
I hope you enjoyed the video, if you have any questions leave a comment below.
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Kubernetes quickstart on Google Cloud», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.