-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy pathspringboot-deployment.yml
More file actions
35 lines (35 loc) · 933 Bytes
/
springboot-deployment.yml
File metadata and controls
35 lines (35 loc) · 933 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
apiVersion: apps/v1
kind: Deployment
metadata:
name: spring-boot-postgres-sample
namespace: default
spec:
selector:
matchLabels:
app: spring-boot-postgres-sample
replicas: 1
template:
metadata:
name: spring-boot-postgres-sample
labels:
app: spring-boot-postgres-sample
spec:
containers:
- name: spring-boot-postgres-sample
env:
- name: POSTGRES_USER
valueFrom:
secretKeyRef:
name: postgres-secrets
key: username
- name: POSTGRES_PASSWORD
valueFrom:
secretKeyRef:
name: postgres-secrets
key: password
- name: POSTGRES_HOST
valueFrom:
configMapKeyRef:
name: hostname-config
key: postgres_host
image: vamsitechtuts/springbootpostgresrestapidemo:latest