-
Notifications
You must be signed in to change notification settings - Fork 0
/
k8s-deployment.yaml
69 lines (69 loc) · 1.73 KB
/
k8s-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
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
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: teams
labels:
name: teams
namespace: apigee
spec:
replicas: 1
selector:
matchLabels:
component: teams
template:
metadata:
labels:
component: teams
routable: "true"
annotations:
privateHosts: sso.k8s.dev
privatePaths: 3000:/az-teams
spec:
containers:
- name: teams
image: teams
imagePullPolicy: IfNotPresent
env:
- name: PORT
value: "3000"
- name: PG_HOST
valueFrom:
secretKeyRef:
name: permissions
key: pghost
- name: PG_USER
valueFrom:
secretKeyRef:
name: permissions
key: pguser
- name: PG_PASSWORD
valueFrom:
secretKeyRef:
name: permissions
key: pgpassword
- name: PG_DATABASE
valueFrom:
secretKeyRef:
name: permissions
key: pgdatabase
- name: SHIPYARD_PRIVATE_SECRET
valueFrom:
secretKeyRef:
name: routing
key: private-api-key
- name: SPEEDUP
value: "10"
- name: INTERNAL_SY_ROUTER_HOST
value: "kubernetes_host_ip"
- name: INTERNAL_SY_ROUTER_PORT
value: "30556"
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: IPADDRESS
valueFrom:
fieldRef:
fieldPath: status.podIP
ports:
- containerPort: 3000