-
Notifications
You must be signed in to change notification settings - Fork 0
/
k8s-deployment.yaml
50 lines (50 loc) · 1.2 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
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: <component-name>
labels:
name: <component-name>
namespace: apigee
spec:
replicas: 1
selector:
matchLabels:
component: <component-name>
template:
metadata:
labels:
component: <component-name>
routable: "true"
annotations:
privateHosts: sso.k8s.dev
privatePaths: 3000:/<component-name>
spec:
containers:
- name: <component-name>
image: <component-name>
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
ports:
- containerPort: 3000