-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathci-server.yaml
51 lines (51 loc) · 1.43 KB
/
ci-server.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
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: teamcity-server
labels:
app: teamcity-server
spec:
replicas: 1
selector:
matchLabels:
app: teamcity-server
template:
metadata:
labels:
app: teamcity-server
spec:
containers:
- name: teamcity-server
image: fstn/teamcity-server-postgres
ports:
- containerPort: 8111
- name: cloudsql-proxy
image: gcr.io/cloudsql-docker/gce-proxy:1.11
command: ["/cloud_sql_proxy", "--dir=/cloudsql",
"-instances= teamcity-postgres=tcp:5432",
"-credential_file=/secrets/cloudsql/proxy-sql-secure.json"]
volumeMounts:
- name: cloudsql-instance-credentials
mountPath: /secrets/cloudsql
readOnly: true
- name: ssl-certs
mountPath: /etc/ssl/certs
- name: cloudsql
mountPath: /cloudsql
- name: data
mountPath: /data/teamcity_server/datadir
# [END proxy_container]
# [START volumes]
volumes:
- name: cloudsql-instance-credentials
secret:
secretName: cloudsql-instance-credentials
- name: cloudsql
emptyDir:
- name: ssl-certs
hostPath:
path: /etc/ssl/certs
- name: data
gcePersistentDisk:
pdName: teamcity-server-volume
fsType: ext4