Skip to content

Commit 1bd19cb

Browse files
authored
Create nginx-deployment.yaml
1 parent fe801c0 commit 1bd19cb

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
metadata:
9+
labels:
10+
app: nginx # pod labels
11+
spec:
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

Comments
 (0)