-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment.yaml
61 lines (61 loc) · 1.78 KB
/
deployment.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
53
54
55
56
57
58
59
60
61
apiVersion: apps/v1
kind: Deployment
metadata:
name: proxmox-ha-bridge
labels:
app: proxmox-ha-bridge
spec:
replicas: 1
selector:
matchLabels:
app: proxmox-ha-bridge
template:
metadata:
labels:
app: proxmox-ha-bridge
spec:
volumes:
- name: config
configMap:
name: ha-bridge-config
containers:
- name: proxmox-ha-bridge
image: registry.gitlab.com/bighotel/proxmox-ha-bridge:latest
imagePullPolicy: Always
resources:
requests:
cpu: "20m"
memory: "55M"
limits:
cpu: "1000m"
memory: "128M"
env:
- name: PROXMOX_HA_BRIDGE_NATS_PASSWORD
valueFrom:
secretKeyRef:
name: proxmox-ha-bridge-secrets
key: PROXMOX_HA_BRIDGE_NATS_PASSWORD
- name: PROXMOX_HA_BRIDGE_NATS_USERNAME
valueFrom:
secretKeyRef:
name: proxmox-ha-bridge-secrets
key: PROXMOX_HA_BRIDGE_NATS_USERNAME
- name: PROXMOX_HA_BRIDGE_PROXMOX_TOKEN_ID
valueFrom:
secretKeyRef:
name: proxmox-ha-bridge-secrets
key: PROXMOX_HA_BRIDGE_PROXMOX_TOKEN_ID
- name: PROXMOX_HA_BRIDGE_PROXMOX_TOKEN_SECRET
valueFrom:
secretKeyRef:
name: proxmox-ha-bridge-secrets
key: PROXMOX_HA_BRIDGE_PROXMOX_TOKEN_SECRET
volumeMounts:
- name: config
mountPath: /config
args:
- --config=/config/config.yaml
- start
restartPolicy: Always
imagePullSecrets:
- name: registry-credentials