Update windows containers deployment (#16749)

There are two fixes in this change. First, the yaml is left justified in order to ease copying. Secondly, the selector field is added to the deployment.
This commit is contained in:
Dax McDonald
2019-10-11 14:50:04 -07:00
committed by Kubernetes Prow Robot
parent 75bea0af64
commit bbe6cc3dea
@@ -30,13 +30,13 @@ Windows applications constitute a large portion of the services and applications
To deploy a Windows container on Kubernetes, you must first create an example application. The example YAML file below creates a simple webserver application. Create a service spec named `win-webserver.yaml` with the contents below:
```yaml
apiVersion: v1
kind: Service
metadata:
apiVersion: v1
kind: Service
metadata:
name: win-webserver
labels:
app: win-webserver
spec:
spec:
ports:
# the port that this service should serve on
- port: 80
@@ -44,15 +44,18 @@ To deploy a Windows container on Kubernetes, you must first create an example ap
selector:
app: win-webserver
type: NodePort
---
apiVersion: apps/v1
kind: Deployment
metadata:
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: win-webserver
name: win-webserver
spec:
spec:
replicas: 2
selector:
matchLabels:
app: win-webserver
template:
metadata:
labels: