-
Notifications
You must be signed in to change notification settings - Fork 4
/
concourse-web-rc.yaml
63 lines (62 loc) · 1.82 KB
/
concourse-web-rc.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
apiVersion: v1
kind: ReplicationController
metadata:
name: concourse-web
spec:
replicas: 1
template:
metadata:
labels:
name: concourse-web
spec:
containers:
- name: concourse-web
image: concourse/concourse
args: ['web']
env:
- name: CONCOURSE_BASIC_AUTH_USERNAME
valueFrom:
secretKeyRef:
name: concourse-secrets
key: basic-auth-username
- name: CONCOURSE_BASIC_AUTH_PASSWORD
valueFrom:
secretKeyRef:
name: concourse-secrets
key: basic-auth-password
- name: CONCOURSE_EXTERNAL_URL
value: http://concourse.periscopedata.com:8080
- name: POSTGRES_PASSWORD
valueFrom:
secretKeyRef:
name: concourse-secrets
key: postgres-password
- name: CONCOURSE_POSTGRES_DATA_SOURCE
value: |-
postgres://concourse:$(POSTGRES_PASSWORD)@$(CONCOURSE_POSTGRESQL_SERVICE_HOST):$(CONCOURSE_POSTGRESQL_SERVICE_PORT)/concourse?sslmode=disable
- name: MY_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
- name: PEER_URL
value: http://$(MY_IP):$(CONCOURSE_WEB_SERVICE_PORT)
ports:
- containerPort: 8080
name: atc
- containerPort: 2222
name: tsa
volumeMounts:
- name: concourse-secrets
mountPath: /concourse-keys
readOnly: true
volumes:
- name: concourse-secrets
secret:
secretName: concourse-secrets
items:
- key: tsa-host-key
path: tsa_host_key
- key: tsa-authorized-keys
path: authorized_worker_keys
- key: session-signing-key
path: session_signing_key