D4 Notes
D4 Notes
Today’s Agenda:
1. Docker recap
2. Introduction to Kubernetes
- Lab Practicals
3. Do it yourself
- Build a docker image to setup Kafka Server
- Build Order Microservice
- Build Inventory Microservice
Container Orchestration
Consider you have 1 cat
who is responsible for its care: Yourself
Kuberenetes
- Container orchestration platform
- Terminology of Kubernetes:
- POD: Wrapper on container taking care of Networking & Volume concepts (Managed by K8s)
- Controller: Used to control the PODs (Managed by Operations Engineer)
- Service: Used to access the PODs (Managed by Operations Engineer)
Do it yourself
1. Build a docker image by using below instructions to create Kafka container
- Download https://archive.apache.org/dist/kafka/2.5.0/kafka_2.12-2.5.0.tgz
- Unzip tgz and tar file to C:/labs/docker-labs folder
- Please use the ‘openjdk:8-alpine’ image
- Copy kafka_2.12-2.5.0 to Image
- Change current working directory in Image to /kafka_2.12-2.5.0
- Start the zookeeper using below script
start bin\zookeeper-server-start.sh config\zookeeper.properties
- Start the kafka server using below script
start bin\kafka-server-start.sh config\server.properties
- Create the Topic by name ‘test’ using below command
bin\kafka-topics.sh --create --bootstrap-server localhost:9092 --replication-factor 1 --partitions 1 --topic test
Let us focus on “Kubernetes Lab Activities - Labsetup & Practice 1.1”
Time: 30 to 45 mins
Email: [email protected]