forked from Dr-Dream/openstf-k8s
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenstf-storage-plugin-image.yaml
More file actions
54 lines (54 loc) · 1.33 KB
/
openstf-storage-plugin-image.yaml
File metadata and controls
54 lines (54 loc) · 1.33 KB
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
apiVersion: v1
kind: ReplicationController
metadata:
name: openstf-storage-plugin-image
labels:
app: openstf-storage-plugin-image
spec:
replicas: 1
selector:
app: openstf-storage-plugin-image
template:
metadata:
labels:
app: openstf-storage-plugin-image
spec:
terminationGracePeriodSeconds: 10
containers:
- name: openstf-storage-plugin-image
image: openstf/stf:latest
imagePullPolicy: IfNotPresent
ports:
- containerPort: 3000
name: image
command: ["stf"]
args:
- "storage-plugin-image"
- --port
- "3000"
- --storage-url
- "$(OPENSTF_BASE_URL)"
resources:
limits:
cpu: 100m
memory: 256Mi
requests:
cpu: 100m
memory: 256Mi
envFrom:
- configMapRef:
name: openstf-config
env:
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: POD_IP
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: status.podIP