-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp-deploy.yaml
More file actions
46 lines (45 loc) · 922 Bytes
/
app-deploy.yaml
File metadata and controls
46 lines (45 loc) · 922 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
44
45
46
apiVersion: v1
kind: Service
metadata:
name: userservice
namespace: chatgut
spec:
ports:
- port: 8004
targetPort: 8004
selector:
app: userservice
clusterIP: None
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: userservice
labels:
app: userservice
spec:
replicas: 1
selector:
matchLabels:
app: userservice
template:
metadata:
name: userservice
labels:
app: userservice
spec:
containers:
- name: userservice
image: urlshortenerservice2-app/name
imagePullPolicy: Never
# env:
# - name: MYSQL_USER
# value: developer
# - name: MYSQL_PASSWORD
# value: password
# - name: DB_URL
# value: jdbc:mysql://mysql:3306/demo
ports:
- containerPort: 8004
name: userservice
restartPolicy: Always