-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeployment.yaml
41 lines (41 loc) · 1.24 KB
/
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
40
41
apiVersion: apps/v1
kind: Deployment
metadata:
name: #{Project.Deployment.Name}
spec:
replicas: 1
selector:
matchLabels:
component: #{Project.Labels.Component}
template:
metadata:
labels:
component: #{Project.Labels.Component}
spec:
containers:
- name: auditservice #audit service name
image: octopussamples/octopub-audit-microservice-mysql:#{Project.Container.Tag}
ports:
- name: http-audit
containerPort: 10000
env:
- name: DATABASE_PASSWORD
valueFrom:
secretKeyRef:
name: database-credentials
key: database-password
- name: DATABASE_HOSTNAME
value: "#{Octopub.Yaml.Database.Server.Name}"
- name: DATABASE_PORT
value: "3306"
- name: DATABASE_NAME
value: "#{Octopub.Yaml.Database.Name}"
- name: DATABASE_USERNAME
valueFrom:
secretKeyRef:
name: database-credentials
key: database-user
- name: MIGRATE_AT_START
value: "false"
- name: COGNITO_DISABLE_AUTH
value: "true" #Comment