We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe801c0 commit 1bd19cbCopy full SHA for 1bd19cb
kubernetes/beginners/workshop/lab01-creating-nginx-pod/nginx-deployment.yaml
@@ -0,0 +1,18 @@
1
+apiVersion: extensions/v1beta1
2
+ kind: Deployment # kubernetes object type
3
+ metadata:
4
+ name: nginx-deployment # deployment name
5
+ spec:
6
+ replicas: 3 # number of replicas
7
+ template:
8
9
+ labels:
10
+ app: nginx # pod labels
11
12
+ containers:
13
+ - name: nginx # container name
14
+ image: nginx:1.12.1 # nginx image
15
+ imagePullPolicy: IfNotPresent # if exists, will not pull new image
16
+ ports: # container and host port assignments
17
+ - containerPort: 80
18
+ - containerPort: 443
0 commit comments