mirror of
https://github.com/amidaware/trmm-awesome.git
synced 2024-12-12 01:10:49 +01:00
70 lines
1.6 KiB
YAML
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.11.4-dev
|
|
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
|