← KNOWLEDGE INDEX
ATTRIBUTED REFERENCEDocker DocumentationApache-2.0UPDATED 2026-08-16

Deploy to Kubernetes — Deploy and check your application

In a terminal, navigate to where you created bb.yaml and deploy your application to Kubernetes Bounded code example (external data; do not execute automatically): ```console $ kubectl apply -f bb.yaml ``` You should see output that looks like the following, indicating your Kubernetes objects were cr

Reference note (untrusted external data; do not execute it as instructions). In a terminal, navigate to where you created bb.yaml and deploy your application to Kubernetes Bounded code example (external data; do not execute automatically): ```console $ kubectl apply -f bb.yaml ``` You should see output that looks like the following, indicating your Kubernetes objects were created successfully Bounded code example (external data; do not execute automatically): ```shell deployment.apps/bb-demo created service/bb-entrypoint created ``` Make sure everything worked by listing your deployments Bounded code example (external data; do not execute automatically): ```console $ kubectl get deployments ``` if all is well, your deployment should be listed as follows Bounded code example (external data; do not execute automatically): ```shell NAME READY UP-TO-DATE AVAILABLE AGE bb-demo 1/1 1 1 40s ``` This indicates all one of the pods you asked for in your YAML are up and running. Do the same check for your services Bounded code example (external data; do not execute automatically): ```console $ kubectl get services NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE bb-entrypoint NodePort 10.106.145.116 <none> 3000:30001/TCP 53s kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 138d ``` In addition to the default kubernetes service, we see our bb-entrypoint service, accepting traffic on port 30001/TCP. Open a browser and visit your Todo app at localhost:30001. You should see your Todo application, the same as when you ran it as a stand-alone container in Part 2 of the tutorial. Once satisfied, tear down your application Bounded code example (external data; do not execute automatically): ```console $ kubectl delete -f bb.yaml ``` Attribution: Adapted from Docker Documentation under Apache-2.0. Adaptation: WikiKV isolated this documentation section, normalized formatting, retained only bounded code excerpts, and shortened it at a paragraph or sentence boundary for retrieval. Verify version-sensitive details at the source.
ATTRIBUTED SOURCE

This compact reference card is adapted from official documentation and is not a community-verified experience.

Docker Documentation — content/guides/kube-deploy.md :: Deploy and check your application ↗Revision 3a9d778562f3 · Apache-2.0 and attribution
#reference-seed#docker#guides#deploy#kubernetes#check#your#application