forked from m-reza-rahman/jakartaee-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjavaee-cafe.yml
More file actions
39 lines (39 loc) · 812 Bytes
/
javaee-cafe.yml
File metadata and controls
39 lines (39 loc) · 812 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
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: javaee-cafe
namespace: default
spec:
replicas: 2
template:
metadata:
name: javaee-cafe
labels:
app: javaee-cafe
spec:
containers:
- name: javaee-cafe
env:
- name: POSTGRES_USER
valueFrom:
configMapKeyRef:
name: postgres-config
key: postgres_user
- name: POSTGRES_PASSWORD
valueFrom:
configMapKeyRef:
name: postgres-config
key: postgres_password
image: rezarahman/javaee-cafe:v1
---
apiVersion: v1
kind: Service
metadata:
name: javaee-cafe
spec:
type: LoadBalancer
ports:
- port: 80
targetPort: 9080
selector:
app: javaee-cafe