trmm-awesome/kubernetes/deployment/tactical-celery.yaml

82 lines
1.9 KiB
YAML
Raw Normal View History

2022-01-03 08:37:09 +01:00
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: tacticalrmm
labels:
app: tacticalrmm
service: tactical-celery
name: tactical-celery
spec:
replicas: 1
selector:
matchLabels:
service: tactical-celery
strategy:
type: Recreate
template:
metadata:
labels:
network/api-db: "true"
network/redis: "true"
service: tactical-celery
spec:
securityContext:
runAsUser: 1000
fsGroup: 1000
containers:
- name: trmm-celery
2022-07-09 00:34:12 +02:00
image: tacticalrmm/tactical:0.14.1
2022-01-03 08:37:09 +01:00
args:
- tactical-celery
resources: {}
env:
- name: CERT_PUB_PATH
value: /etc/ssl/certs/custom/tls.crt
- name: CERT_PRIV_PATH
value: /etc/ssl/certs/custom/tls.key
volumeMounts:
- mountPath: /opt/tactical
name: tactical-data
restartPolicy: Always
volumes:
- name: tactical-data
persistentVolumeClaim:
claimName: tactical-data
---
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: tacticalrmm
labels:
app: tacticalrmm
service: tactical-celerybeat
name: tactical-celerybeat
spec:
replicas: 1
selector:
matchLabels:
service: tactical-celerybeat
strategy:
type: Recreate
template:
metadata:
labels:
network/api-db: "true"
network/redis: "true"
service: tactical-celerybeat
spec:
containers:
- name: trmm-celerybeat
2022-07-09 00:34:12 +02:00
image: tacticalrmm/tactical:0.14.1
2022-01-03 08:37:09 +01:00
args:
- tactical-celerybeat
resources: {}
volumeMounts:
- mountPath: /opt/tactical
name: tactical-data
restartPolicy: Always
volumes:
- name: tactical-data
persistentVolumeClaim:
claimName: tactical-data