thinkingkasce.blogg.se

Deploy docker on kubernetes
Deploy docker on kubernetes











The Second method is a Quick one where you Do not have to write any Instructions like YAML/JSON files and let Kubernetes do the hard work for you, I would like to Present you two Different options to Create a Kubernetes Container from your Docker Image aka Dockerfile. Note*: Till here you were Creating a Docker Image and working on Docker Command Line Interface.Īs you are entering into the Kubernetes Phase. The file is designed to run redis in-memory database in an alpine base OSĪksarav /apps/docker /redisserver$ docker container run -d -it -name rediscontainer saravak/ redis:latestī9824eb84fd75fdf511149284db8fef4b1d03dce6be5e8527e38159b672f115cĪksarav /apps/docker/redisserver $ docker container listĬONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMESī9824eb84fd7 saravak /redis:latest "redis-server" 27 seconds ago Up 25 seconds 6379/tcp rediscontainer Check the newly created POD in Kubernetes DashBoardĬreating of Dockerfile.Build and Create a POD from Manifest file.Optionally upload to docker Hub to share with the world.Validate if the Image is created and Listed.Steps to Deploy Docker Image to Kubernetes. Validation: check the newly created pod in Kubernetes Dashboard (GUI) – minikube.Step7: Make Sure the POD is created and Ready.Method2: Quick Deployment of Docker Image with No Manifest.Step8: Validate the pod creation and find more information.Step7: Build and Create POD from Manifest file.Step6: Create Manifest file for Kubernetes.Method1: Kubernetes Tasks with Manifest file.Step3: Validate the image is created in docker images.Steps to Deploy Docker Image to Kubernetes.













Deploy docker on kubernetes