Hello,
Before learning how to deploy containerized image(s) to single node kubernetes cluster, you should go through below two articles explained.
1) Build a docker image and push to docker hub : click here
2) Learn how to deploy the container to kubernetes single node cluster using commands : Click here
Learn how to deploy the container to kubernetes using yaml file :
Follow below list of commands explained
kubernetes dashboard:
output:
Thank you
Sadakar Pochampalli
Before learning how to deploy containerized image(s) to single node kubernetes cluster, you should go through below two articles explained.
1) Build a docker image and push to docker hub : click here
2) Learn how to deploy the container to kubernetes single node cluster using commands : Click here
Learn how to deploy the container to kubernetes using yaml file :
Follow below list of commands explained
Docker to kubernetes
|
Yaml file
|
Deployment through yaml file
|
.\kubectl.exe create -f sadakarkubernetes2.yaml
|
apiVersion: extensions/v1beta1
kind: Deployment metadata: name: sadakarkubernetes2 spec: replicas: 3 template: metadata: labels: app: get-started spec: containers: - image: "sadakar/get-started:part2" name: sadakar ports: - containerPort: 80 |
|
Test yaml code from
|
|
Expose the deployment as a service
|
.\kubectl.exe expose deployment sadakarkubernetes2
--type=NodePort
|
Launch the service
|
.\minikube.exe service sadakarkubernetes2
|
URL of the service
|
.\minikube.exe service --url=true sadakarkubernetes2
|
kubernetes dashboard:
output:
Thank you
Sadakar Pochampalli
ReplyDeleteNice post. Keep updating
Docker Training
Docker Online Training
Kubernetes Online Training
Docker and Kubernetes Training
I would like to thank you for the efforts you have made in writing this article, Its good and Informative.
ReplyDeletekubernetes online training hyderabad