-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdeployment.yaml
More file actions
75 lines (75 loc) · 1.95 KB
/
deployment.yaml
File metadata and controls
75 lines (75 loc) · 1.95 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: sushy-emulator
namespace: sushy-emulator
spec:
replicas: 1
selector:
matchLabels:
app: sushy-emulator
triggers:
- type: "ConfigChange"
strategy:
type: Recreate
paused: false
revisionHistoryLimit: 2
minReadySeconds: 0
template:
metadata:
annotations: {}
labels:
app: sushy-emulator
name: sushy-emulator
spec:
volumes:
- name: sushy-emulator-config
configMap:
name: sushy-emulator-config
defaultMode: 0644 # u=rw,g=r,o=r
items:
- key: config
path: config.conf
- key: htpasswd
path: .htpasswd
mode: 0600 # u=rw,g=r,o=r
- name: os-client-config
secret:
secretName: os-client-config
defaultMode: 0644 # u=rw,g=r,o=r
items:
- key: openstack-clouds-yaml
path: clouds.yaml
- key: certificate-pem
path: cacert.pem
containers:
- name: sushy-emulator
image: quay.io/rhn_gps_hjensas/sushy-tools:dev-1773400388
command: ["/usr/local/bin/sushy-emulator", "--debug", "--config", "/etc/sushy-emulator/config.conf"]
ports:
- containerPort: 8000
volumeMounts:
- name: sushy-emulator-config
mountPath: /etc/sushy-emulator/
- name: os-client-config
mountPath: /etc/openstack/
readinessProbe:
httpGet:
path: redfish/v1
port: 8000
initialDelaySeconds: 5
periodSeconds: 5
livenessProbe:
httpGet:
path: redfish/v1
port: 8000
initialDelaySeconds: 10
failureThreshold: 30
periodSeconds: 10
startupProbe:
httpGet:
path: redfish/v1
port: 8000
failureThreshold: 30
initialDelaySeconds: 10