trmm-awesome/kubernetes/deployment/tactical-backend.yaml
2022-07-08 15:34:12 -07:00

70 lines
1.6 KiB
YAML

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:
securityContext:
runAsUser: 1000
fsGroup: 1000
containers:
- name: trmm-backend
image: tacticalrmm/tactical:0.14.1
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"
port: 8080
targetPort: 8080
- name: "https"
port: 4443
targetPort: 4443
selector:
service: tactical-backend