-
Notifications
You must be signed in to change notification settings - Fork 0
Prerequisites
You're going to need a local Docker setup, git, a code editor and a Kubernetes installation to fully use this sample code. Since everything is cross platform you should be able to use Windows, macOS or Linux.
Follow the instructions on Docker's website to get Linux containers running on your local machine.
While you could run everything within Docker you might want to run the sample code directly on your local machine using the dotnet command line. To do this, you need to install the .NET Core SDK for your OS.
.NET SDK Installation and Getting Started
Keep in mind you could already have the SDK installed by installing Visual Studio, etc.
Make sure you have 2.x or higher for this code:
dotnet --version
At this point, you can run all of the examples in a local Docker environment or even host them in a Docker runtime somewhere. To continue on with the exercises, you will want a Kubernetes environment. There are several options for setting a Kubernetes environment: local, VMs, or in the cloud.
With some Docker installations, you can easily enable a single Kubernetes node from within Dockers settings.
Docker with Kubernetes for Windows
Docker with Kubernetes for macOS
You can also run other local installs like Minikube.
There are a couple sites that will allow you to setup a Kubernetes cluster in seconds for learning. Take a look at these two:
Just pick a cloud service and roll with it! Most offer free trial credits.
Azure Kubernetes Service (AKS)
You can run a single node Kubernetes cluster using the B1S VM size for free (for a year)!
Google Kubernetes Engine (GKE)
You can run a single node Kubernetes cluster using the f1-micro size for free (forever)!
Amazon Elastic Kubernetes Service (EKS)
You can run a single node Kubernetes cluster using the t2.micro size for free (for a year)!
You can create a single-instance Kubernetes instance for a month for free.
In order for these remote Kubernetes services to pull your custom Docker images, you'll need to host them somewhere. There are LOTS of options. I suggest choosing one from the same cloud provider or using Docker Hub. Nearly all have some level of free tier.