forked from artisantek/java-example
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdeploy.yaml
More file actions
44 lines (41 loc) · 808 Bytes
/
deploy.yaml
File metadata and controls
44 lines (41 loc) · 808 Bytes
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: multistage
namespace: dev
spec:
selector:
matchLabels:
app: multistage
template:
metadata:
labels:
app: multistage
spec:
containers:
- name: multistage
image: public.ecr.aws/g5i1d7r1/navya114:1.0.$BUILD_NUMBER'
ports:
- containerPort: 8080
# volumeMounts:
# - name: volume-pv
# mountPath: /usr/local/tomcat/webapps
# volumes:
# - name: volume-pv
# persistentVolumeClaim:
# claimName: multistage-pvc
imagePullSecrets:
- name: regcred
---
apiVersion: v1
kind: Service
metadata:
name: multistage
namespace: dev
spec:
type: NodePort
selector:
app: multistage
ports:
- port: 8080
targetPort: 8080