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

70 lines
1.6 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-backend
name: tactical-backend
spec:
replicas: 1
selector:
matchLabels:
service: tactical-backend
strategy:
type: Recreate
template:
metadata:
labels:
network/api-db: "true"
network/redis: "true"
network/proxy: "true"
service: tactical-backend
spec:
2022-01-18 01:51:44 +01:00
securityContext:
runAsUser: 1000
fsGroup: 1000
2022-01-03 08:37:09 +01:00
containers:
- name: trmm-backend
2022-01-18 01:51:44 +01:00
image: tacticalrmm/tactical:0.11.4-dev
2022-01-03 08:37:09 +01:00
args:
- tactical-backend
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
- mountPath: /etc/ssl/certs/custom
name: tactical-certs
restartPolicy: Always
volumes:
- name: tactical-data
persistentVolumeClaim:
claimName: tactical-data
- name: tactical-certs
secret:
secretName: rmm-mydomain-com-tls
---
apiVersion: v1
kind: Service
metadata:
namespace: tacticalrmm
labels:
app: tacticalrmm
service: tactical-backend
name: tactical-backend
spec:
ports:
- name: "http"
2022-01-18 01:51:44 +01:00
port: 8080
targetPort: 8080
2022-01-03 08:37:09 +01:00
- name: "https"
2022-01-18 01:51:44 +01:00
port: 4443
targetPort: 4443
2022-01-03 08:37:09 +01:00
selector:
service: tactical-backend