Jump to content

DevOps/Kubernetes

From Wikiversity

Kubernetes (commonly stylized as K8s[3]) is an open-source Container-Orchestration system for automating deployment, autoscaling (based on CPU, memory[1] or custom metrics[2]) and management of containerized applications.[4] It works with a range of container tools, including Docker.

Kubernetes objects, concepts or subsystems:

Installation

[edit | edit source]

See: Installation and Kubernetes changelog.

Microk8s

[edit | edit source]

MicroK8s single node Kubernetes solution available since December 2018[3]

  • Installation:
    • snap install microk8s
    • snap install microk8s --classic

minikube

[edit | edit source]

brew cask install minikube[4]

Kubernetes Log files [5]

[edit | edit source]

Master

  • /var/log/kube-apiserver.log - API Server, responsible for serving the API
  • /var/log/kube-scheduler.log - Scheduler, responsible for making scheduling decisions
  • /var/log/kube-controller-manager.log - Controller that manages replication controllers
  • etcd

Worker Nodes

  • /var/log/kubelet.log - Kubelet, responsible for running containers on the node
  • /var/log/kube-proxy.log - Kube Proxy, responsible for service load balancing

Kubernetes Ports

[edit | edit source]
  • Kubernetes API: TCP 6443 [6]

See also OpenShift port requeriments: https://docs.openshift.com/container-platform/4.2/installing/installing_bare_metal/installing-bare-metal.html

Activities

[edit | edit source]

Kubernetes Cloud Service Providers

[edit | edit source]

Kubernetes is offered as a service on multiple public clouds, including Amazon Web Services (EKS)[7] (since June 2018 in the US East (N. Virginia) and US West (Oregon) Regions), Microsoft Azure (AKS) since october 2017,[8] DigitalOcean[9] (since May 2018),[10][11] Google Kubernetes Engine (GKE) in Google Cloud Platform[12] (at least since November 2014),[13] IBM Cloud [14], Alibaba Cloud [15], Mail.Ru Cloud Solutions (since May 2018)[16]. For a more comprehensive list you can check https://kubernetes.io/docs/setup/pick-right-solution/#hosted-solutions. Most of them if not all requires a valid credit card.

Kubernetes Timeline

[edit | edit source]

See also

[edit | edit source]
  1. https://blog.powerupcloud.com/autoscaling-based-on-cpu-memory-in-kubernetes-part-ii-fe2e495bddd4
  2. https://docs.bitnami.com/kubernetes/how-to/configure-autoscaling-custom-metrics/
  3. https://snapcraft.io/blog/canonical-launches-microk8s-deploy-kubernetes-in-seconds
  4. https://github.com/kubernetes/minikube
  5. https://kubernetes.io/docs/tasks/debug-application-cluster/debug-cluster/
  6. https://kubernetes.io/docs/reference/access-authn-authz/controlling-access/
  7. https://aws.amazon.com/blogs/aws/amazon-eks-now-generally-available/
  8. https://azure.microsoft.com/fr-fr/blog/introducing-azure-container-service-aks-managed-kubernetes-and-azure-container-registry-geo-replication/
  9. https://www.digitalocean.com/docs/kubernetes/overview/
  10. https://techcrunch.com/2018/05/02/digital-ocean-launches-its-container-platform/
  11. https://tech.economictimes.indiatimes.com/news/corporate/digitalocean-launches-kubernetes-based-container-service/64007829
  12. https://cloud.google.com/kubernetes-engine/
  13. https://cloud.google.com/kubernetes-engine/release-notes
  14. https://www.ibm.com/cloud/container-service
  15. https://www.alibabacloud.com/product/kubernetes
  16. "MCS – Mail.Ru Cloud Solutions". mcs.mail.ru (in Russian). Retrieved 2018-12-05.
  17. https://snapcraft.io/blog/canonical-launches-microk8s-deploy-kubernetes-in-seconds
  18. https://eng.uber.com/open-sourcing-peloton/
[edit | edit source]