1. Minikube allows users to run a single-node Kubernetes cluster locally for development and testing. It provisions and manages a virtual machine running Kubernetes.
2. The steps to set up Minikube on Windows are to install Oracle VirtualBox, enable virtualization in BIOS, install Minikube and Kubectl, and start the Minikube cluster.
3. Some basic operations with Minikube include starting and stopping the cluster, getting the cluster status and IP, creating deployments and exposing services, and checking pod statuses. The Kubernetes dashboard is also available.
An in depth overview of Kubernetes and it's various components.
NOTE: This is a fixed version of a previous presentation (a draft was uploaded with some errors)
Kubernetes Secrets Management on Production with DemoOpsta
Are you still keep your credential in your code?
This session will show you how to do secrets management in best practices with Hashicorp Vault with a demo on Kubernetes
Jirayut Nimsaeng
Founder & CEO
Opsta (Thailand) Co., Ltd.
Youtube Record: https://youtu.be/kBgePhkmRMA
TD Tech - Open House: The Technology Playground @ Sathorn Square
October 29, 2022
Kubernetes has two simple but powerful network concepts: every Pod is connected to the same network, and Services let you talk to a Pod by name. Bryan will take you through how these concepts are implemented - Pod Networks via the Container Network Interface (CNI), Service Discovery via kube-dns and Service virtual IPs, then on to how Services are exposed to the rest of the world.
Building Multi-Site and Multi-OpenStack Cloud with OpenStack CascadingJoe Huang
The slides used in the speech "Building multi-site and multi-openstack cloud with OpenStack cascading" in OpenStack Paris summit 2014. The slides cover the requirement and driving forces, case study of VDF, technologies eloboration and demo of OpenStack cascading.
In this session, we will discuss the architecture of a Kubernetes cluster. we will go through all the master and worker components of a kubernetes cluster. We will also discuss the basic terminology of Kubernetes cluster such as Pods, Deployments, Service etc. We will also cover networking inside Kuberneets. In the end, we will discuss options available for the setup of a Kubernetes cluster.
** Kubernetes Certification Training: https://www.edureka.co/kubernetes-certification **
This Edureka tutorial on "Kubernetes Architecture" will give you an introduction to popular DevOps tool - Kubernetes, and will deep dive into Kubernetes Architecture and its working. The following topics are covered in this training session:
1. What is Kubernetes
2. Features of Kubernetes
3. Kubernetes Architecture and Its Components
4. Components of Master Node and Worker Node
5. ETCD
6. Network Setup Requirements
DevOps Tutorial Blog Series: https://goo.gl/P0zAfF
An in depth overview of Kubernetes and it's various components.
NOTE: This is a fixed version of a previous presentation (a draft was uploaded with some errors)
Kubernetes Secrets Management on Production with DemoOpsta
Are you still keep your credential in your code?
This session will show you how to do secrets management in best practices with Hashicorp Vault with a demo on Kubernetes
Jirayut Nimsaeng
Founder & CEO
Opsta (Thailand) Co., Ltd.
Youtube Record: https://youtu.be/kBgePhkmRMA
TD Tech - Open House: The Technology Playground @ Sathorn Square
October 29, 2022
Kubernetes has two simple but powerful network concepts: every Pod is connected to the same network, and Services let you talk to a Pod by name. Bryan will take you through how these concepts are implemented - Pod Networks via the Container Network Interface (CNI), Service Discovery via kube-dns and Service virtual IPs, then on to how Services are exposed to the rest of the world.
Building Multi-Site and Multi-OpenStack Cloud with OpenStack CascadingJoe Huang
The slides used in the speech "Building multi-site and multi-openstack cloud with OpenStack cascading" in OpenStack Paris summit 2014. The slides cover the requirement and driving forces, case study of VDF, technologies eloboration and demo of OpenStack cascading.
In this session, we will discuss the architecture of a Kubernetes cluster. we will go through all the master and worker components of a kubernetes cluster. We will also discuss the basic terminology of Kubernetes cluster such as Pods, Deployments, Service etc. We will also cover networking inside Kuberneets. In the end, we will discuss options available for the setup of a Kubernetes cluster.
** Kubernetes Certification Training: https://www.edureka.co/kubernetes-certification **
This Edureka tutorial on "Kubernetes Architecture" will give you an introduction to popular DevOps tool - Kubernetes, and will deep dive into Kubernetes Architecture and its working. The following topics are covered in this training session:
1. What is Kubernetes
2. Features of Kubernetes
3. Kubernetes Architecture and Its Components
4. Components of Master Node and Worker Node
5. ETCD
6. Network Setup Requirements
DevOps Tutorial Blog Series: https://goo.gl/P0zAfF
A Comprehensive Introduction to Kubernetes. This slide deck serves as the lecture portion of a full-day Workshop covering the architecture, concepts and components of Kubernetes. For the interactive portion, please see the tutorials here:
https://github.com/mrbobbytables/k8s-intro-tutorials
Kubernetes currently has two load balancing mode: userspace and IPTables. They both have limitation on scalability and performance. We introduced IPVS as third kube-proxy mode which scales kubernetes load balancer to support 50,000 services. Beyond that, control plane needs to be optimized in order to deploy 50,000 services. We will introduce alternative solutions and our prototypes with detailed performance data.
Docker nous permet de déployer nos applications dans des conteneurs. Du coup notre infrastructure se retrouve divisée dans différents conteneurs, un pour la base de données, un pour le front, un pour le backend. Voir même une division en services lorsque l’on est dans une approche micro-services.
Mais comment faire communiquer ces différents conteneurs? Comment orchestrer un cluster de conteneurs? Kubernetes est une réponse à ces questions.
Introduction of Kubernetes - Trang NguyenTrang Nguyen
This presentation provides the basic concepts of the Kubernetes for Beginners.
1) Introduction of Kubernetes
Before Kubernetes
What is Kubernetes
What Kubernetes can do?
What Kubernetes can't do?
Features of Kubernetes
Kubernetes Architecture
Kubernetes vs Docker Swarm
Kubernetes 7 use cases
...
2) Kubernetes Component
What is Kubelet?
What is Kubectl?
What is Kubeadm?
3) Nodes in Kubernetes
What is a node in Kubernetes?
Master node
Worker node
4) Kubernetes Development Process
What is blue green deployment?
How to automate the deployment?
5) Networking in Kubernetes
Kubernetes networking model
Ingress networking in Kubernetes
6) Security Measures in Kubernetes
Best security measures in Kubernetes
Kubernetes와 Kubernetes on OpenStack 환경의 비교와 그 구축방법에 대해서 알아봅니다.
1. 클라우드 동향
2. Kubernetes vs Kubernetes on OpenStack
3. Kubernetes on OpenStack 구축 방벙
4. Kubernetes on OpenStack 운영 방법
Maîtrisez Ansible avec mon cours expert : automatisation, gestion système, et déploiement facile. Transformez votre infrastructure informatique dès aujourd'hui.
Kubernetes Helm makes application deployment easy, standardized and reusable. Use of Kubernetes Helm leads to better developer productivity, reduced Kubernetes deployment complexity and enhanced enterprise production readiness.
Enterprises using Kubernetes Helm can speed up the adoption of cloud native applications. These applications can be sourced from open-source community provided repositories, or from an organization’s internal repository of customized application blueprints.
Developers can use Kubernetes Helm as a vehicle for packaging their applications and sharing them with the Kubernetes community. Kubernetes Helm also allows software vendors to offer their containerized applications at “the push of a button.” Through a single command or a few mouse clicks, users can install Kubernetes apps for dev-test or production environments.
ElasticKube, a Container Management Platform for KubernetesMatt Baldwin
ElasticBox Lead Architect Arnaud Bonnet's presentation from the March 18, 2016 Seattle Kubernetes meetup hosted by StackPointCloud. Arnaud gives us a great overview of ElasticKube, a Kubernetes container management platform, and what's ahead for the open source project. Join us in Seattle: http://www.meetup.com/Seattle-Kubernetes-Meetup/
A Comprehensive Introduction to Kubernetes. This slide deck serves as the lecture portion of a full-day Workshop covering the architecture, concepts and components of Kubernetes. For the interactive portion, please see the tutorials here:
https://github.com/mrbobbytables/k8s-intro-tutorials
Kubernetes currently has two load balancing mode: userspace and IPTables. They both have limitation on scalability and performance. We introduced IPVS as third kube-proxy mode which scales kubernetes load balancer to support 50,000 services. Beyond that, control plane needs to be optimized in order to deploy 50,000 services. We will introduce alternative solutions and our prototypes with detailed performance data.
Docker nous permet de déployer nos applications dans des conteneurs. Du coup notre infrastructure se retrouve divisée dans différents conteneurs, un pour la base de données, un pour le front, un pour le backend. Voir même une division en services lorsque l’on est dans une approche micro-services.
Mais comment faire communiquer ces différents conteneurs? Comment orchestrer un cluster de conteneurs? Kubernetes est une réponse à ces questions.
Introduction of Kubernetes - Trang NguyenTrang Nguyen
This presentation provides the basic concepts of the Kubernetes for Beginners.
1) Introduction of Kubernetes
Before Kubernetes
What is Kubernetes
What Kubernetes can do?
What Kubernetes can't do?
Features of Kubernetes
Kubernetes Architecture
Kubernetes vs Docker Swarm
Kubernetes 7 use cases
...
2) Kubernetes Component
What is Kubelet?
What is Kubectl?
What is Kubeadm?
3) Nodes in Kubernetes
What is a node in Kubernetes?
Master node
Worker node
4) Kubernetes Development Process
What is blue green deployment?
How to automate the deployment?
5) Networking in Kubernetes
Kubernetes networking model
Ingress networking in Kubernetes
6) Security Measures in Kubernetes
Best security measures in Kubernetes
Kubernetes와 Kubernetes on OpenStack 환경의 비교와 그 구축방법에 대해서 알아봅니다.
1. 클라우드 동향
2. Kubernetes vs Kubernetes on OpenStack
3. Kubernetes on OpenStack 구축 방벙
4. Kubernetes on OpenStack 운영 방법
Maîtrisez Ansible avec mon cours expert : automatisation, gestion système, et déploiement facile. Transformez votre infrastructure informatique dès aujourd'hui.
Kubernetes Helm makes application deployment easy, standardized and reusable. Use of Kubernetes Helm leads to better developer productivity, reduced Kubernetes deployment complexity and enhanced enterprise production readiness.
Enterprises using Kubernetes Helm can speed up the adoption of cloud native applications. These applications can be sourced from open-source community provided repositories, or from an organization’s internal repository of customized application blueprints.
Developers can use Kubernetes Helm as a vehicle for packaging their applications and sharing them with the Kubernetes community. Kubernetes Helm also allows software vendors to offer their containerized applications at “the push of a button.” Through a single command or a few mouse clicks, users can install Kubernetes apps for dev-test or production environments.
ElasticKube, a Container Management Platform for KubernetesMatt Baldwin
ElasticBox Lead Architect Arnaud Bonnet's presentation from the March 18, 2016 Seattle Kubernetes meetup hosted by StackPointCloud. Arnaud gives us a great overview of ElasticKube, a Kubernetes container management platform, and what's ahead for the open source project. Join us in Seattle: http://www.meetup.com/Seattle-Kubernetes-Meetup/
Docker: The basics - Including a demo with an awesome full-stack JS appMarcelo Rodrigues
What is Docker?
What is Jquery, MongoDB and Nashorn?
The high-level architecture of the Online Kanban Board
Docker run syntax / putting everything together
What is Docker-Compose and why it is so amazing
DEMO
Q & A
9 ways to consume kubernetes on open stack in 15 mins (k8s meetup)Stacy Véronneau
Like that title states, this is a quick slide deck to help people consume OpenStack resources from Kubernetes. It covers elements running on a laptop to consuming a full production cloud.
Join us to learn how to deploy your first containerized application on the most popular orchestration engine. You will understand the basic concepts of Kubernetes along with the terminology and the deployment architecture. We will show you everything from building a Docker image to going live with your application. Each attendee gets $300 credit to start using Google Container Engine!
Join us to learn the concepts and terminology of Kubernetes such as Nodes, Labels, Pods, Replication Controllers, Services. After taking a closer look at the Kubernetes master and the nodes, we will walk you through the process of building, deploying, and scaling microservices applications. Each attendee gets $100 credit to start using Google Container Engine. The source code is available at https://github.com/janakiramm/kubernetes-101
Delivered as plenary at USENIX LISA 2013. video here: https://www.youtube.com/watch?v=nZfNehCzGdw and https://www.usenix.org/conference/lisa13/technical-sessions/plenary/gregg . "How did we ever analyze performance before Flame Graphs?" This new visualization invented by Brendan can help you quickly understand application and kernel performance, especially CPU usage, where stacks (call graphs) can be sampled and then visualized as an interactive flame graph. Flame Graphs are now used for a growing variety of targets: for applications and kernels on Linux, SmartOS, Mac OS X, and Windows; for languages including C, C++, node.js, ruby, and Lua; and in WebKit Web Inspector. This talk will explain them and provide use cases and new visualizations for other event types, including I/O, memory usage, and latency.
kubernetes install and practice
* Environment (bare metal installation, not using cloud service)
- VM 1 : Mater node, 30GB, 2 vCPU, 4GB Mem
- VM 2 : Worker node, 30GB, 2 vCPU, 4GB Mem
* Practice
- deploying pod, make a deployment and service
- expose service using ingress(nginx-ingress)
It is a simple introduction to the containers world, starting from LXC to arrive to the Docker Platform.
The presentation is focused on the first steps in the docker environment and the scenarious from a developer point of view.
Preparation study for Docker Event
Mulodo Open Study Group (MOSG) @Ho chi minh, Vietnam
http://www.meetup.com/Open-Study-Group-Saigon/events/229781420/
Gebruik dezelfde Docker container voor Java applicaties tijdens ontwikkelen e...NLJUG
Docker is een extreem populair en relatief nieuw open source project waarmee containers gemaakt kunnen worden van (bijna alle) applicaties. Een container gebaseerd op Ubuntu met Glassfish en je favoriete applicatie is een van de vele mogelijkheden. Het grootste voordeel is dat Docker containers draaien op (alle) Linux distributies. Dit betekend dat dezelfde container lokaal gebruikt kan worden voor ontwikkeling en in de cloud gebruikt kan worden voor klanten. Docker wordt al gebruikt door grote bedrijven als Ebay en Spotify en ook Google ondersteund het actief. Deze presentatie zal de voordelen van Docker en de best practices behandelen. Tevens zal ik demonstreren hoe Docker werkt zodat je na deze sessie zelf met Docker aan de slag kan.
Slides for the Docker for Java Developers workshop at JavaLand in 2017. It covers building and running containers. It also covers running GUI applications in Docker and using the Docker registry.
This talk will focus on a brief overview of Kubernetes, with a brief demo, and then more of an in-depth focus on issues we've faced moving PHP projects into Docker and Kubernetes like signal propagation, init systems, and logging.
Talk from Cape Town PHP meetup on Feb. 7, 2016:
https://www.meetup.com/Cape-Town-PHP-Group/events/237226310/
Code: https://github.com/zoidbergwill/kubernetes-php-examples
Slides as markdown: http://www.zoidbergwill.com/presentations/2017/kubernetes-php/index.md
Slides for my talk at the Blue4IT meeting in Utrecht. It shows you how to run everything in a Docker container. You can run the DTAP environment, the build environment and the development environment (including IDE) in Docker.
A small introduction to get started on Kubernetes as a user. This explains the main concepts like pod, deployment and services and gives some hints to help you use kubectl command.
These slides were presented in Grenoble Docker meetup in November 2017.
In celebration of the launch of the Knative Cookbook, we will run a fast-paced live code demonstration of the coolest Knative-based techniques that we can imagine that include Kafka and Kamel.
Code testing and Continuous Integration are just the first step in a source code to production process. Combined with infrastructure-as-code tools such as Puppet the whole process can be automated, and tested!
1. Minikube - Getting started (on windows)
Introduction
Local-machine Solutions for Kubernetes: Minikube
What is Minikube?
Running Kubernetes Locally via Minikube
Requirements
Install Oracle Virtual Box
Enable Virtualization
Install Minikube
Windows: download minikube and add to path
Windows Installer
Install Kubectl
Testing Setup
Starting the cluster
Some more minikube operations:
Test it out
Introduction
Kubernetes can run on a range of platforms, from your laptop, to VMs on a cloud provider, to rack of bare metal servers. The effort required to set
up a cluster varies from running a single command to crafting your own customized cluster. In this guide, i will walk you through creating
kubernetes cluster for local development.
If you just want to “kick the tires” on Kubernetes, we recommend the local Docker-based solution using MiniKube.
Local-machine Solutions for Kubernetes: Minikube
What is Minikube?
Minikube is a tool that makes it easy to run Kubernetes locally. Minikube runs a single-node Kubernetes cluster inside a VM on your laptop for
users looking to try out Kubernetes or develop with it day-to-day.
Minikube is the recommended method for you to create a single node kubernetes cluster locally for purposes of development and testing. Setup is
completely automated and doesn’t require a cloud provider account.
Use the Minikube getting started guide to try it out
Running Kubernetes Locally via Minikube
Minikube starts a single node kubernetes cluster locally for purposes of development and testing. Minikube packages and configures a Linux VM,
Docker and all Kubernetes components, optimized for local development. Minikube supports Kubernetes features such as:
DNS
NodePorts
ConfigMaps and Secrets
Dashboards
Minikube does not yet support Cloud Provider specific features such as:
LoadBalancers
PersistentVolumes
Ingress
Requirements
Install Oracle Virtual Box
Install Oracle virtual box
2. 1.
2.
Enable Virtualization
VT-x/AMD-v virtualization must be enabled in BIOS. If you are able to run virtualbox on your windows machine, it should already be enabled for
you.
Install Minikube
See the latest Minikube release for installation instructions. There are two methods for installing on windows.
Windows: download minikube and add to path
Download the file, rename it to and add it to your pathminikube-windows-amd64.exe minikube.exe
Windows Installer
Download the file, and execute the installer. This will automatically add minikube.exe to your path with anminikube-installer.exe
uninstaller available as well.
Install Kubectl
kubectl must be on your path. Minikube currently supports any version of kubectl greater than 1.0, but it is recommended using the most
recent version.
The latest version of kubectl can be downloaded from .here
Once downloaded put kucbectl to your windows path.
Testing Setup
Test minikube setup
minikube version
> minikube version
minikube version: v0.13.1
minikube help
minikube help
> minikube help
Minikube is a CLI tool that provisions and manages single-node
Kubernetes clusters optimized for development workflows.
Usage:
minikube [command]
Available Commands:
addons Modify minikube's kubernetes addons
completion Outputs minikube shell completion for the given
3. shell (bash)
config Modify minikube config
dashboard Opens/displays the kubernetes dashboard URL for
your local cluster
delete Deletes a local kubernetes cluster.
docker-env sets up docker env variables; similar to
'$(docker-machine env)'
get-k8s-versions Gets the list of available kubernetes versions
available for minikube.
ip Retrieve the IP address of the running cluster.
logs Gets the logs of the running localkube instance,
used for debugging minikube, not user code.
service Gets the kubernetes URL(s) for the specified
service in your local cluster
ssh Log into or run a command on a machine with SSH;
similar to 'docker-machine ssh'
start Starts a local kubernetes cluster.
status Gets the status of a local kubernetes cluster.
stop Stops a running local kubernetes cluster.
version Print the version of minikube.
Flags:
--alsologtostderr log to standard error as well
as files
--log_backtrace_at traceLocation when logging hits line
file:N, emit a stack trace (default :0)
--log_dir string If non-empty, write log files
in this directory
--logtostderr log to standard error instead
of files
--show-libmachine-logs Whether or not to show logs
from libmachine.
--stderrthreshold severity logs at or above this
threshold go to stderr (default 2)
--test.bench string regular expression per path
component to select benchmarks to run
--test.benchmem print memory allocations for
benchmarks
--test.benchtime duration approximate run time for each
benchmark (default 1s)
--test.blockprofile string write a goroutine blocking
profile to the named file after execution
--test.blockprofilerate int if >= 0, calls
runtime.SetBlockProfileRate() (default 1)
--test.count n run tests and benchmarks n
times (default 1)
--test.coverprofile string write a coverage profile to
the named file after execution
--test.cpu string comma-separated list of
number of CPUs to use for each test
--test.cpuprofile string write a cpu profile to the
named file during execution
--test.memprofile string write a memory profile to the
4. named file after execution
--test.memprofilerate int if >=0, sets
runtime.MemProfileRate
--test.outputdir string directory in which to write
profiles
--test.parallel int maximum test parallelism
(default 4)
--test.run string regular expression to select
tests and examples to run
--test.short run smaller test suite to
save time
--test.timeout duration if positive, sets an
aggregate time limit for all tests (default 0s)
--test.trace string write an execution trace to
the named file after execution
--test.v verbose: print additional
output
-v, --v Level log level for V logs
--vmodule moduleSpec comma-separated list of
5. pattern=N settings for file-filtered logging
Use "minikube [command] --help" for more information about a command.
kubernetes version supported by minikube
minikube supported kubernetes versions
> minikube get-k8s-versions
The following Kubernetes versions are available:
- v1.5.0-beta.1
- v1.4.3
- v1.4.2
- v1.4.1
- v1.4.0
- v1.3.7
- v1.3.6
- v1.3.5
- v1.3.4
- v1.3.3
- v1.3.0
Starting cluster in custome way
6. > minikube.exe start --kubernetes-version="v1.4.0" /
--vm-driver="virtualbox"
--show-libmachine-logs --alsologtostderr
W1207 00:16:20.958899 13400 root.go:139] Error reading config file
at C:UsersMMehta.minikubeconfigconfig.json: open
C:UsersMMehta.minikubeconfigconfig.json: The system cannot find
the file specified.
I1207 00:16:20.966391 13400 notify.go:112] Checking for updates...
Starting local Kubernetes cluster...
I1207 00:16:21.194417 13400 cluster.go:78] Machine exists!
I1207 00:16:21.850475 13400 cluster.go:85] Machine state: Stopped
(minikube) Check network to re-create if needed...
(minikube) Waiting for an IP...
Waiting for SSH to be available...
Detecting the provisioner...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
Downloading localkube binary
78.78 MB / 78.78 MB [==============================================]
100.00% 0s
I1207 00:18:20.137511 13400 cluster.go:275] Setting up certificates
for IP: %s 192.168.99.100
I1207 00:18:20.270108 13400 cluster.go:212] sudo killall localkube
|| true
I1207 00:18:20.348164 13400 cluster.go:214] killall: localkube: no
process killed
I1207 00:18:20.348663 13400 cluster.go:212]
# Run with nohup so it stays up. Redirect logs to useful places.
sudo sh -c 'PATH=/usr/local/sbin:$PATH nohup /usr/local/bin/localkube
--generate-certs=false --logtostderr=true --enable-dns=false
--node-ip=192.168.99.100 > /var/lib/localkube/localkube.out 2>
/var/lib/localkube/localkube.err < /dev/null & echo $! >
/var/run/localkube.pid &'
I1207 00:18:20.434598 13400 cluster.go:214]
I1207 00:18:20.626234 13400 start.go:171] Using kubeconfig:
C:UsersMMehta/.kube/config
Kubectl is now configured to use the cluster.
Minikube cluster status
7. 3.
minikube cluster status
> minikube status
minikubeVM: Running
localkube: Running
> minikube status
minikubeVM: Stopped
localkube: N/A
Cluster information
Minikube cluster info
> kubectl cluster-info
Kubernetes master is running at https://192.168.99.100:8443
KubeDNS is running at
https://192.168.99.100:8443/api/v1/proxy/namespaces/kube-system/servi
ces/kube-dns
kubernetes-dashboard is running at
https://192.168.99.100:8443/api/v1/proxy/namespaces/kube-system/servi
ces/kubernetes-dashboard
To further debug and diagnose cluster problems, use 'kubectl
cluster-info dump'.
kubectl client and server version
kubectl version
> kubectl version
Client Version: version.Info{Major:"1", Minor:"3",
GitVersion:"v1.3.0",
GitCommit:"283137936a498aed572ee22af6774b6fb6e9fd94",
GitTreeState:"clean", BuildDate:"2016-07-01T19:26:38Z",
GoVersion:"go1.6.2
", Compiler:"gc", Platform:"windows/amd64"}
Server Version: version.Info{Major:"1", Minor:"4",
GitVersion:"v1.4.6",
GitCommit:"e569a27d02001e343cb68086bc06d47804f62af6",
GitTreeState:"clean", BuildDate:"1970-01-01T00:00:00Z",
GoVersion:"go1.7.1
", Compiler:"gc", Platform:"linux/amd64"}
Test kubectl setup
8. Starting the cluster
To start a cluster, run the command
minikube start
> minikube start
Starting local Kubernetes cluster...
Downloading Minikube ISO
36.00 MB / 36.00 MB [==============================================]
100.00% 0s
Kubectl is now configured to use the cluster.
This will build and start a lightweight local cluster, consisting of a master, etcd, Docker and a single node.
Minikube will also create a “minikube” context, and set it to default in kubectl. To switch back to this context later, run this command:
set context
kubectl config use-context minikube
To stop cluster:
> minikube stop
Stopping local Kubernetes cluster...
Machine stopped.
To delete cluster:
delete cluster
> minikube delete
Deleting local Kubernetes cluster...
Machine deleted.
Minikube also includes the Kubernetes dashboard. Run this command to see the included kube-system pods:
9. Get pods
> kubectl get pods --all-namespaces
NAMESPACE NAME READY STATUS RESTARTS
AGE
kube-system kube-addon-manager-minikube 1/1 Running 0
3m
kube-system kube-dns-v20-u1vsu 3/3 Running 0
1m
kube-system kubernetes-dashboard-0tymh 1/1 Running 0
1m
Run this command to open the Kubernetes dashboard:
Kube Dashboard
> minikube.exe dashboard --url=true
http://192.168.99.100:30000
> minikube dashboard
Opening kubernetes dashboard in default browser...
When nothing is up:
When services and pods in action:
10. 1.
2.
3.
4.
Some more minikube operations:
Cluster IP
Cluster IP
> minikube ip
192.168.99.100
Create deployment
Deployment
> kubectl run hello-minikube
--image=gcr.io/google_containers/echoserver:1.4 --port=8080
deployment "hello-minikube" created
Service
> kubectl expose deployment hello-minikube --type=NodePort
service "hello-minikube" exposed
Get Pods Status
We have now launched an echoserver pod but we have to wait until the pod is up before curling/accessing it # via the exposed service.
To check whether the pod is up and running we can use the following:
11. 5.
Pod Status
> kubectl get pod
NAME READY STATUS RESTARTS
AGE
hello-minikube-3015430129-6qmgo 1/1 ContainerCreating 0
30ms
Initially the container status would be: ".ContainerCreating". After some times it returns to "Running" Status.
Pod Status
> kubectl get pod
NAME READY STATUS RESTARTS AGE
hello-minikube-3015430129-6qmgo 1/1 Running 0 5m
Get the service
Get Services
> kubectl get services
NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE
hello-minikube 10.0.0.118 <nodes> 8080/TCP 17m
kubernetes 10.0.0.1 <none> 443/TCP 1h
Information about a service
Service description
> kubectl describe service hello-minikube
Name: hello-minikube
Namespace: default
Labels: run=hello-minikube
Selector: run=hello-minikube
Type: NodePort
IP: 10.0.0.118
Port: <unset> 8080/TCP
NodePort: <unset> 31436/TCP
Endpoints: 172.17.0.4:8080
Session Affinity: None
No events.
> minikube service hello-minikube
Opening kubernetes service default/hello-minikube in default
browser...
12. 6.
7.
Scaling the service
> kubectl scale --replicas=3 deployment/hello-minikube
deployment "hello-minikube" scaled
Now the status of deployment
> kubectl.exe get deployment
NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE
hello-minikube 3 3 3 3 1h
Stopping cluster
13. 7.
1.
2.
Stopping cluster
> minikube stop
Stopping local Kubernetes cluster...
Machine stopped.
Test it out
List the nodes in your cluster by running:
Get Nodes
> kubectl get nodes
NAME STATUS AGE
minikube Ready 50m
Minikube contains a built-in Docker daemon for running containers. If you use another Docker daemon for building your containers, you will have
to publish them to a registry before minikube can pull them. You can use minikube’s built in Docker daemon to avoid this extra step of pushing
your images. Use the built-in Docker daemon with:
> eval $(minikube docker-env)
References:
http://kubernetes.io/docs/getting-started-guides
http://kubernetes.io/docs/getting-started-guides/minikube/