-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathfaas_function_k8s.yml
More file actions
46 lines (46 loc) · 891 Bytes
/
faas_function_k8s.yml
File metadata and controls
46 lines (46 loc) · 891 Bytes
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
apiVersion: v1
kind: Service
metadata:
name: python
namespace: default
spec:
ports:
- port: 8080
protocol: TCP
targetPort: 8080
selector:
faas_function: python
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: python
spec:
replicas: 1
rollbackTo:
revision: 0
selector:
matchLabels:
faas_function: python
template:
metadata:
name: python
labels:
faas_function: python
spec:
containers:
- env:
- name: fprocess
value: python3 time2py.py
- name: https_proxy
value: $https_proxy
- name: no_proxy
value: gateway
- name: read_timeout
value: "60"
- name: write_timeout
value: "60"
image: jockdarock/time2py:latest
imagePullPolicy: Always
name: python
nodeName: aci-connector