47 lines
1.1 KiB
YAML
47 lines
1.1 KiB
YAML
![]() |
---
|
||
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
name: greece-notifier
|
||
|
spec:
|
||
|
replicas: 1
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app: greece-notifier
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
app: greece-notifier
|
||
|
spec:
|
||
|
nodeSelector:
|
||
|
kubernetes.io/hostname: nas.homenet
|
||
|
volumes:
|
||
|
- name: data
|
||
|
nfs:
|
||
|
server: nas.homenet
|
||
|
path: /mnt/storage/Storage/k8s/greece-notifier/
|
||
|
readOnly: false
|
||
|
containers:
|
||
|
- name: greece-notifier
|
||
|
image: ultradesu/greece-notifier:master
|
||
|
resources:
|
||
|
requests:
|
||
|
cpu: "100m"
|
||
|
memory: "256Mi"
|
||
|
limits:
|
||
|
cpu: "2000m"
|
||
|
memory: "1Gi"
|
||
|
volumeMounts:
|
||
|
- name: data
|
||
|
mountPath: /data
|
||
|
env:
|
||
|
- name: ENDPOINT_BID
|
||
|
value: 56 # Cyprus id
|
||
|
- name: UPDATE_INTERVAL_SECS
|
||
|
value: 300
|
||
|
- name: TELOXIDE_TOKEN
|
||
|
valueFrom:
|
||
|
secretKeyRef:
|
||
|
name: greece-notifier-creds
|
||
|
key: TELOXIDE_TOKEN
|