@@ -32,6 +32,7 @@ certainly want the docs that go with that version.</h1>
-[Environment Variables](#environment-variables)
-[DNS](#dns)
-[Exposing the Service to the internet](#exposing-the-service-to-the-internet)
-[What's next?](#what's-next?)
<!-- END MUNGE: GENERATED_TOC -->
...
...
@@ -237,6 +238,10 @@ $ kubectl get service nginxsvc -o json | grep \"ip\"
```
Now you have a load balancer that automatically does what you would’ve in the previous step. Note that you cannot directly curl your nodes on port 80, you need to go to the ip of the load balancer.
## What's next?
[Learn about more Kubernetes features that will help you run containers reliably in production.](production-pods.md)
@@ -21,8 +21,8 @@ certainly want the docs that go with that version.</h1>
<!-- END MUNGE: UNVERSIONED_WARNING -->
#Connecting to applications: kubectl port-forward
kubectl port-forward forwards connections to a local port to a port on a pod. Its man page is available [here](kubectl/kubectl_port-forward.md). Compared to [kubectl proxy](accessing-the-cluster.md#using-kubectl-proxy), `kubectl port-forward` is more generic as it can forward TCP traffic while `kubectl proxy` can only forward HTTP traffic. This guide demonstrates how to use `kubectl port-forward` to connect to a Redis database, which may be useful for database debugging.
kubectl port-forward forwards connections to a local port to a port on a pod. Its man page is available [here](kubectl/kubectl_port-forward.md). Compared to [kubectl proxy](accessing-the-cluster.md#using-kubectl-proxy), `kubectl port-forward` is more generic as it can forward TCP traffic while `kubectl proxy` can only forward HTTP traffic. This guide demonstrates how to use `kubectl port-forward` to connect to a Redis database, which may be useful for database debugging.
You previously read about how to quickly deploy a simple replicated application using [`kubectl run`](quick-start.md) and how to configure and launch single-run containers using pods (configuring-containers.md). Here, you’ll use the configuration-based approach to deploy a continuously running, replicated application.
## Launching a set of replicas using a configuration file
...
...
@@ -113,6 +124,10 @@ map[app:nginx]
You could also specify the `selector` explicitly, such as if you wanted to specify labels in the pod template that you didn’t want to select on, but you should ensure that the selector will match the labels of the pods created from the pod template, and that it won’t match pods created by other replication controllers. The most straightforward way to ensure the latter is to create a unique label value for the replication controller, and to specify it in both the pod template’s labels and in the selector.
## What's next?
[Learn about exposing applications to users and clients, and connecting tiers of your application together.](connecting-applications.md)
@@ -26,6 +26,10 @@ To deploy and manage applications on Kubernetes, you’ll use the Kubernetes com
In order for kubectl to find and access the Kubernetes cluster, it needs a [kubeconfig file](kubeconfig-file.md), which is created automatically when creating a cluster using kube-up.sh (see the [getting started guides](../../docs/getting-started-guides/) for more about creating clusters). If you need access to a cluster you didn’t create, see the [Sharing Cluster Access document](sharing-clusters.md).
## What's next?
[Learn how to launch and expose your application.](quick-start.md)
@@ -22,6 +22,21 @@ certainly want the docs that go with that version.</h1>
<!-- END MUNGE: UNVERSIONED_WARNING -->
# Kubernetes User Guide: Managing Applications: Working with pods and containers in production
**Table of Contents**
<!-- BEGIN MUNGE: GENERATED_TOC -->
-[Kubernetes User Guide: Managing Applications: Working with pods and containers in production](#kubernetes-user-guide:-managing-applications:-working-with-pods-and-containers-in-production)
-[Authenticating with a private image registry](#authenticating-with-a-private-image-registry)
-[Helper containers](#helper-containers)
-[Resource management](#resource-management)
-[Liveness and readiness probes (aka health checks)](#liveness-and-readiness-probes-(aka-health-checks))
-[Lifecycle hooks and termination notice](#lifecycle-hooks-and-termination-notice)
-[Termination message](#termination-message)
-[What's next?](#what's-next?)
<!-- END MUNGE: GENERATED_TOC -->
You’ve seen [how to configure and deploy pods and containers](configuring-containers.md), using some of the most common configuration parameters. This section dives into additional features that are especially useful for running applications in production.