-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpy-proto-ingress-user.yaml
52 lines (52 loc) · 1.25 KB
/
py-proto-ingress-user.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
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
app: py-proto-user
name: py-proto-user
spec:
replicas: 1
selector:
matchLabels:
app: "py-proto"
backend-service: "yes"
ingress-user-allowed: "no"
ingress-health-allowed: "yes"
egress-redis-allowed: "yes"
strategy: {}
template:
metadata:
creationTimestamp: null
labels:
app: "py-proto"
backend-service: "yes"
ingress-user-allowed: "no"
ingress-health-allowed: "yes"
egress-redis-allowed: "yes"
spec:
containers:
- image: saurabhsa/py-protobuf-example:latest
name: py-protobuf-user
imagePullPolicy: IfNotPresent
ports:
- name: py-user-port
containerPort: 5000
env:
- name: REDIS_HOST
valueFrom:
configMapKeyRef:
name: redis-config
key: REDIS_HOST
- name: REDIS_PORT
valueFrom:
configMapKeyRef:
name: redis-config
key: REDIS_PORT
- name: REDIS_P
valueFrom:
configMapKeyRef:
name: redis-config
key: REDIS_P
resources: {}
status: {}