This repository has been archived by the owner on May 6, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 20
/
.freight.yaml
117 lines (115 loc) · 2.83 KB
/
.freight.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
sentry:
organization: sentry
project: zeus-web
repository: getsentry/zeus
kubernetes:
credentials:
kind: gcloud
project: zeus-176020
cluster: zeus
zone: us-central1-b
steps:
- kind: KubernetesJob
image: gcr.io/zeus-176020/zeus:{sha}
name: db-upgrade
args: ["zeus", "db", "upgrade"]
env:
- name: GC_PROJECT
value: zeus-176020
- name: GCS_BUCKET
value: 'artifacts.zeus-176020.appspot.com'
- name: DB_HOST
value: pgbouncer
- name: DB_USER
valueFrom:
secretKeyRef:
name: cloudsql-db-credentials
key: username
- name: DB_PASSWORD
valueFrom:
secretKeyRef:
name: cloudsql-db-credentials
key: password
- name: SENTRY_DSN
valueFrom:
secretKeyRef:
name: sentry
key: dsn
- name: SENTRY_DSN_FRONTEND
valueFrom:
secretKeyRef:
name: sentry
key: dsn-frontend
- name: SECRET_KEY
valueFrom:
secretKeyRef:
name: zeus
key: secret-key
- name: GITHUB_CLIENT_ID
valueFrom:
secretKeyRef:
name: github
key: client-id
- name: GITHUB_CLIENT_SECRET
valueFrom:
secretKeyRef:
name: github
key: client-secret
- name: DOMAIN
value: zeus.ci
- name: SSL
value: 'true'
- name: GET_HOSTS_FROM
value: env
- name: REPO_ROOT
value: '/tmp/repo-cache'
- name: MAIL_SERVER
value: 'smtp.mailgun.org'
- name: MAIL_PORT
value: '2525'
- name: MAIL_USE_TLS
value: '1'
- name: MAIL_USE_SSL
value: '0'
- name: MAIL_USERNAME
value: '[email protected]'
- name: MAIL_PASSWORD
valueFrom:
secretKeyRef:
name: mail
key: password
- name: MAIL_DEFAULT_SENDER
value: 'Zeus <[email protected]>'
- name: GOOGLE_APPLICATION_CREDENTIALS
value: '/var/run/secret/cloud.google.com/service-account.json'
- name: ALLOWED_ORIGINS
value: 'updates.zeus.ci,zeus.ci'
- name: PUBSUB_ENDPOINT
value: 'https://updates.zeus.ci'
- name: VCS_SERVER_ENDPOINT
value: 'http://vcs-server'
- name: ROLE
value: upgrade-job
- name: RABBITMQ_HOST
value: 'rabbitmq-1-rabbitmq-svc.default.svc.cluster.local'
- name: RABBITMQ_PORT
value: '5672'
- name: RABBITMQ_USER
value: rabbit
- name: RABBITMQ_PASSWORD
valueFrom:
secretKeyRef:
name: rabbitmq-1-rabbitmq-secret
key: rabbitmq-pass
- kind: KubernetesDeployment
selector:
label_selector: app in (web, pubsub, worker)
containers:
- image: gcr.io/zeus-176020/zeus:{sha}
name: zeus
- kind: KubernetesStatefulSet
selector:
label_selector: app in (vcs-server)
containers:
- image: gcr.io/zeus-176020/zeus:{sha}
name: zeus