

Normal Created 2m19s kubelet, minikube Created container Normal Pulled 2m20s kubelet, minikube Successfully pulled image "saravak/redis:latest" Normal Pulling 2m26s kubelet, minikube pulling image "saravak/redis:latest" Normal SuccessfulMountVolume 2m27s kubelet, minikube MountVolume.SetUp succeeded for volume "default-token-t5c7w" Normal Scheduled 2m27s default-scheduler Successfully assigned redis-pod to minikube Tolerations: / not-ready:NoExecute for 300s Type: Secret (a volume populated by a Secret) var/run /secrets/kubernetes.io/serviceaccount from default-token-t5c7w (ro) Image ID: docker-pullable: //saravak/redis 6379/TCP Hello-minikube- 7c77b68cff-pd4x2 1/ 1 Running 1 11hĪksarav /apps/kubernetes $ kubectl get pods/redis-podĪksarav /apps/kubernetes $ kubectl describe pods/redis-podĬontainer ID: docker: //c7bc7ce68272493477249da617ea042ca5191b6b7b4ef89f9490dab8584e0fb4 Method1: Kubernetes Tasks with Manifest file Step6: Create Manifest file for KubernetesĬreate a Manifest file to create a Simple and Straight forward POD Īksarav /apps/kubernetes $ kubectl get pods

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.
