-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcosmos-reference.yaml
48 lines (48 loc) · 1.04 KB
/
cosmos-reference.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
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: cosmos-reference
spec:
replicas: 1
template:
metadata:
labels:
app: cosmos-reference
spec:
containers:
- name: cosmos-reference
image: anandbanik/cosmos-reference:1.1
env:
- name: COSMOS_URI
valueFrom:
configMapKeyRef:
name: cosmos-properties
key: cosmos.uri
- name: COSMOS_KEY
valueFrom:
secretKeyRef:
name: cosmos-secret
key: cosmos.key
- name: COSMOS_DB
valueFrom:
configMapKeyRef:
name: cosmos-properties
key: cosmos.db
ports:
- containerPort: 8080
---
apiVersion: v1
kind: Service
metadata:
name: cosmos-reference
# For Azure Internal LB only
annotations:
service.beta.kubernetes.io/azure-load-balancer-internal: "true"
spec:
type: LoadBalancer
ports:
- protocol: TCP
port: 80
targetPort: 8080
selector:
app: cosmos-reference