Change:
This is a Bug Report There are some commands in the tutorial that are missing code formatting. This is a request to update those commands and remove any extra lines in the page. <!--Required Information--Problem: The tutorial has commands that are not formatted as code. For example, kubectl get deployments hello-world Add code formatting: Proposed Solution: Identify the commands that are missing code formatting. Add the code formatting to the commands. Clean up any extra lines in the page. Page to Update: This is a good issue for a first time contributor. If you need more information, feel free to ask in this issue. It is a good idea to build your changes locally.
/good-first-issue
This request has been marked as suitable for new contributors. Please ensure the request meets the requirements listed . If this request no longer meets these requirements, the label can be removed by commenting with the command. <detailsIn response to : /good-first-issue Instructions for interacting with me using PR comments are available . If you have questions or suggestions related to my behavior, please file an issue against the repository. </details
/triage accepted /language en Thanks - another good spot
Is this PR currently being worked on?
it seems already formatted, right?
I don't see any issues with the page as well, and it looks like it was last modified July 27, 2020 at 4:18. Are we missing something?
Let me look. I'd like a first time contributor to work on this issue.
The page renders correctly, however, it would be helpful to clean up the formatting of the page such as extra lines and spaces. Also, the page should use code blocks around any commands (instead of indentation). Let me know if you need more information. Thanks!
i'm a first timer in kubernetes. But i saw nothing wrong in formatting code nor indentation. Only i think there is missing some instruction in creating apps. Should be better to follow Just my 2cent. wdyt?
/assign

Discussion:
This page shows how to create a Kubernetes Service object that exposes an external IP address. ## {{% heading "prerequisites" %}} * Install [kubectl](/docs/tasks/tools/install-kubectl/). * Use a cloud provider like Google Kubernetes Engine or Amazon Web Services to

* Configure `kubectl` to communicate with your Kubernetes API server. For instructions, see the documentation for your cloud provider. ## {{% heading "objectives" %}} * Run five instances of a Hello World application. * Create a Service object that exposes an external IP address. * Use the Service object to access the running application. <!-- lessoncontent --> ## Creating a service for an application running in five pods

kubectl apply -f https://k8s.io/examples/service/load-balancer-example.yaml ``` The preceding command creates a <del> {{< glossary_tooltip text="Deployment" term_id="deployment" >}} and an associated {{< glossary_tooltip term_id="replica-set" text="ReplicaSet" >}}. The ReplicaSet has five {{< glossary_tooltip text="Pods" term_id="pod" >}} each of which runs the Hello World application. </del> <ins> {{< glossary_tooltip text="Deployment" term_id="deployment" >}} and an associated {{< glossary_tooltip term_id="replica-set" text="ReplicaSet" >}}. The ReplicaSet has five {{< glossary_tooltip text="Pods" term_id="pod" >}} each of which runs the Hello World application. </ins> 1. Display information about the Deployment: <del> kubectl get deployments hello-world kubectl describe deployments hello-world </del> <ins> ```shell kubectl get deployments hello-world kubectl describe deployments hello-world ``` </ins> 1. Display information about your ReplicaSet objects: <del> kubectl get replicasets kubectl describe replicasets </del> <ins> ```shell kubectl get replicasets kubectl describe replicasets ``` </ins> 1. Create a Service object that exposes the deployment: <del> kubectl expose deployment hello-world --type=LoadBalancer --name=my-service </del> <ins> ```shell kubectl expose deployment hello-world --type=LoadBalancer --name=my-service ``` </ins> 1. Display information about the Service: <del> kubectl get services my-service </del> <ins> ```shell kubectl get services my-service ``` </ins> The output is similar to this: <del> NAME         TYPE           CLUSTER-IP     EXTERNAL-IP      PORT(S)    AGE my-service   LoadBalancer   10.3.245.137   104.198.205.71   8080/TCP   54s </del> <ins> ``` NAME         TYPE           CLUSTER-IP     EXTERNAL-IP      PORT(S)    AGE my-service   LoadBalancer   10.3.245.137   104.198.205.71   8080/TCP   54s ``` </ins> {{< note >}}

1. Display detailed information about the Service: <del> kubectl describe services my-service </del> <ins> ```shell kubectl describe services my-service ``` </ins> The output is similar to this: <del> Name:           my-service Namespace:      default Labels:         app.kubernetes.io/name=load-balancer-example Annotations:    <none> Selector:       app.kubernetes.io/name=load-balancer-example Type:           LoadBalancer IP:             10.3.245.137 LoadBalancer Ingress:   104.198.205.71 Port:           <unset> 8080/TCP NodePort:       <unset> 32377/TCP Endpoints:      10.0.0.6:8080,10.0.1.6:8080,10.0.1.7:8080 + 2 more... Session Affinity:   None Events:         <none> </del> <ins> ``` Name:           my-service Namespace:      default Labels:         app.kubernetes.io/name=load-balancer-example Annotations:    <none> Selector:       app.kubernetes.io/name=load-balancer-example Type:           LoadBalancer IP:             10.3.245.137 LoadBalancer Ingress:   104.198.205.71 Port:           <unset> 8080/TCP NodePort:       <unset> 32377/TCP Endpoints:      10.0.0.6:8080,10.0.1.6:8080,10.0.1.7:8080 + 2 more... Session Affinity:   None Events:         <none> ``` </ins> Make a note of the external IP address (`LoadBalancer Ingress`) exposed by your service. In this example, the external IP address is 104.198.205.71.

addresses of the pods that are running the Hello World application. To verify these are pod addresses, enter this command: <del> kubectl get pods --output=wide </del> <ins> ```shell kubectl get pods --output=wide ``` </ins> The output is similar to this: <del> NAME                         ...  IP         NODE hello-world-2895499144-1jaz9 ...  10.0.1.6   gke-cluster-1-default-pool-e0b8d269-1afc hello-world-2895499144-2e5uh ...  10.0.1.8   gke-cluster-1-default-pool-e0b8d269-1afc hello-world-2895499144-9m4h1 ...  10.0.0.6   gke-cluster-1-default-pool-e0b8d269-5v7a hello-world-2895499144-o4z13 ...  10.0.1.7   gke-cluster-1-default-pool-e0b8d269-1afc hello-world-2895499144-segjf ...  10.0.2.5   gke-cluster-1-default-pool-e0b8d269-cpuc </del> <ins> ``` NAME                         ...  IP         NODE hello-world-2895499144-1jaz9 ...  10.0.1.6   gke-cluster-1-default-pool-e0b8d269-1afc hello-world-2895499144-2e5uh ...  10.0.1.8   gke-cluster-1-default-pool-e0b8d269-1afc hello-world-2895499144-9m4h1 ...  10.0.0.6   gke-cluster-1-default-pool-e0b8d269-5v7a hello-world-2895499144-o4z13 ...  10.0.1.7   gke-cluster-1-default-pool-e0b8d269-1afc hello-world-2895499144-segjf ...  10.0.2.5   gke-cluster-1-default-pool-e0b8d269-cpuc ``` </ins> 1. Use the external IP address (`LoadBalancer Ingress`) to access the Hello World application: <del> curl http://<external-ip>:<port> </del> <ins> ```shell curl http://<external-ip>:<port> ``` </ins> where `<external-ip>` is the external IP address (`LoadBalancer Ingress`) of your Service, and `<port>` is the value of `Port` in your Service

The response to a successful request is a hello message: <del> Hello Kubernetes! </del> <ins> ```shell Hello Kubernetes! ``` </ins> ## {{% heading "cleanup" %}} To delete the Service, enter this command: <del> kubectl delete services my-service </del> <ins> ```shell kubectl delete services my-service ``` </ins> To delete the Deployment, the ReplicaSet, and the Pods that are running the Hello World application, enter this command: <del> kubectl delete deployment hello-world </del> <ins> ```shell kubectl delete deployment hello-world ``` </ins> ## {{% heading "whatsnext" %}} Learn more about [connecting applications with services](/docs/concepts/services-networking/connect-applications-service/).