-
Notifications
You must be signed in to change notification settings - Fork 0
/
k8s-deployment.yaml
58 lines (58 loc) · 1.46 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
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: permissions
labels:
name: permissions
namespace: apigee
spec:
replicas: 1
selector:
matchLabels:
component: permissions
template:
metadata:
labels:
component: permissions
routable: "true"
annotations:
privateHosts: sso.k8s.local
privatePaths: 3000:/allowed-actions 3000:/is-allowed 3000:/is-allowed-to-inherit-from
spec:
containers:
- name: permissions
image: permissions
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: SPEEDUP
value: "10"
- name: INTERNAL_ROUTER
value: "internal-router"
- name: IPADDRESS
valueFrom:
fieldRef:
fieldPath: status.podIP
ports:
- containerPort: 3000