-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment.yml
23 lines (22 loc) · 894 Bytes
/
deployment.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
apiVersion: apps/v1 # Where in the API it resides
kind: Deployment # The kind of workload we're creating
metadata:
name: nodejsexpress # This will be the name of the deployment
namespace: default
labels:
app: nodejsexpress # This is the label that will be used to match the deployment to the pod
spec:
replicas: 1
selector:
matchLabels:
app: nodejsexpress # This is the label that will be used to match the deployment to the pod
template:
metadata:
labels:
app: nodejsexpress # This is the label that will be used to match the deployment to the pod
spec:
containers:
- name: nodejsexpress
image: tyroneregistry.azurecr.io/nodejsexpress:v1 # This is the image that will be used to create the pod
ports:
- containerPort: 3000 # This is the port that the container will be listening on