-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeployment.yaml
More file actions
46 lines (46 loc) · 1.01 KB
/
deployment.yaml
File metadata and controls
46 lines (46 loc) · 1.01 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
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: kitchen-wall-ingress
spec:
rules:
- host: kitchen-wall.hacks.webfejleszto.info
http:
paths:
- path: /
backend:
serviceName: kitchen-wall-service
servicePort: 3000
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: deployment-kitchen-wall
labels:
app: kitchen-wall
spec:
replicas: 1
selector:
matchLabels:
app: kitchen-wall
template:
metadata:
labels:
app: kitchen-wall
spec:
imagePullSecrets:
- name: pipeline-docker-registry
containers:
- name: kitchen-wall
image: ${CICD_IMAGE}:${CICD_EXECUTION_SEQUENCE}
ports:
- containerPort: 3000
volumeMounts:
- mountPath: /usr/src/app/files
name: kitchen-wall-files
subPath: kitchen-wall-files
volumes:
- name: kitchen-wall-files
hostPath:
path: /srv/data
type: DirectoryOrCreate