-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeployment.yaml
More file actions
54 lines (48 loc) · 1.31 KB
/
deployment.yaml
File metadata and controls
54 lines (48 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
apiVersion: apps/v1
kind: Deployment
metadata:
name: fairi-case-dev
namespace: development
labels:
app: fairi-case-dev
tier: backend
spec:
selector:
matchLabels:
app: fairi-case-dev
service: fairi-case-svc-dev
replicas: 1
template:
metadata:
labels:
app: fairi-case-dev
service: fairi-case-svc-dev
spec:
containers:
- name: fairi-case-dev
image: 904440666777.dkr.ecr.us-east-1.amazonaws.com/jenkins-pipeline-demo3:dev_${BUILD_NUMBER}
imagePullPolicy: Always
ports:
- name: http
containerPort: 8083
protocol: TCP
-------
apiVersion: v1
kind: Service
metadata:
name: fairi-case-svc-dev
namespace: development
labels:
service: fairi-case-svc-dev
spec:
type: NodePort
selector:
app: fairi-case-dev
service: fairi-case-svc-dev
ports:
# By default and for convenience, the `targetPort` is set to the same value as the `port` field.
- port: 8083
targetPort: http
protocol: TCP
name: http
47,1 Bot