-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.yml
More file actions
63 lines (54 loc) · 1.38 KB
/
app.yml
File metadata and controls
63 lines (54 loc) · 1.38 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
target:
os: os.linux.csos
capabilities:
- security.lsm.selinux
dependencies:
- dns
replicationType: "deployment"
containers:
- image: mysql
name: mysql
version: 8.0.16
digest:
sha256: 711df5b93720801b3a727864aba18c2ae46c07f9fe33d5ce9c1f5cbc2c035101
policies:
- policy/example.te
resources:
limit:
cpu: 250m # == 1000m
memory: 256Mi # E, P, T, G, M, K, Ei, Pi, Ti, Gi, Mi, Ki
request:
cpu: 100m
memory: 128Mi
services:
- type: LoadBalancer
ports:
- protocol: TCP
port: 3306
ports:
- protocol: TCP
port: 3306
env:
- name: MYSQL_ALLOW_EMPTY_PASSWORD
value: true
- name: MYSQL_USER
value: mysql-config{database.user}
type: config
- name: MYSQL_DATABASE
value: mysql-config{database.db}
type: config
- name: MYSQL_ROOT_PASSWORD
value: mysql-secrets{database.password}
type: secret
configs:
- name: mysql-config
data:
- key: database.db
data: ${database_db}
- key: database.user
data: ${database_user}
secrets:
- name: mysql-secrets
data:
- key: database.password # password must match what is in 'database.password'
data: ${root_password} #postgres://drone:db-pw-change-me.secret@postgres-service:5432/postgres?sslmode=disable