-
Notifications
You must be signed in to change notification settings - Fork 0
/
app-deployment.yaml
39 lines (39 loc) · 934 Bytes
/
app-deployment.yaml
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: api-marketplace-java
spec:
replicas: 1
selector:
matchLabels:
app: api-marketplace-java
template:
metadata:
labels:
app: api-marketplace-java
spec:
containers:
- name: api-marketplace-java
image: n4kgod/api-boaventuramarketplace-java-app:latest
ports:
- containerPort: 8080
env:
- name: SPRING_DATASOURCE_URL
value: jdbc:mysql://mysql:3306/usersdb?createDatabaseIfNotExists=true
- name: SPRING_DATASOURCE_USERNAME
value: user
- name: SPRING_DATASOURCE_PASSWORD
value: userpassword
---
apiVersion: v1
kind: Service
metadata:
name: api
spec:
selector:
app: api-marketplace-java
ports:
- protocol: TCP
port: 8080
targetPort: 8080
type: NodePort