-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkubernetes-deployment.yaml
More file actions
43 lines (43 loc) · 1.02 KB
/
kubernetes-deployment.yaml
File metadata and controls
43 lines (43 loc) · 1.02 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
apiVersion: apps/v1
kind: Deployment
metadata:
name: docker-rds
namespace: testenv
spec:
replicas: 1
selector:
matchLabels:
app: docker-rds
template:
metadata:
labels:
app: docker-rds
annotations:
iam.amazonaws.com/role: kubernetes-docker-rds
spec:
serviceAccountName: docker-rds
automountServiceAccountToken: true
containers:
- name: docker-rds
image: polarn/docker-rds:0.0.4
imagePullPolicy: Always
env:
- name: NAMESPACE
value: testenv
- name: AWS_DEFAULT_REGION
value: eu-west-1
- name: DATABASE_HOSTNAME
valueFrom:
secretKeyRef:
name: moria
key: endpoint
- name: DATABASE_MASTER_USERNAME
valueFrom:
secretKeyRef:
name: moria
key: username
- name: DATABASE_MASTER_PASSWORD
valueFrom:
secretKeyRef:
name: moria
key: password