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

82 lines
2.4 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-nlb
name: tactical-web
spec:
replicas: 1
selector:
matchLabels:
service: tactical-nlb
strategy:
type: Recreate
template:
metadata:
labels:
network/proxy: "true"
service: tactical-nlb
spec:
2022-01-18 01:51:44 +01:00
securityContext:
runAsUser: 1000
fsGroup: 1000
2022-01-03 08:37:09 +01:00
containers:
- name: nginx
2022-01-18 01:51:44 +01:00
image: tacticalrmm/tactical-nginx:0.11.4-dev
2022-01-03 08:37:09 +01:00
resources: {}
env:
- name: API_HOST
value: api.rmm.mydomain.com
- name: APP_HOST
value: rmm.mydomain.com
- name: MESH_HOST
value: mesh.rmm.mydomain.com
- name: NGINX_RESOLVER
value: kube-dns.kube-system.svc.cluster.local
- name: BACKEND_SERVICE
value: tactical-backend.tacticalrmm.svc.cluster.local
- name: FRONTEND_SERVICE
value: tactical-frontend.tacticalrmm.svc.cluster.local
- name: MESH_SERVICE
value: tactical-meshcentral.tacticalrmm.svc.cluster.local
- name: WEBSOCKETS_SERVICE
value: tactical-websockets.tacticalrmm.svc.cluster.local
- name: CERT_PUB_PATH
value: /etc/ssl/certs/custom/tls.crt
- name: CERT_PRIV_PATH
value: /etc/ssl/certs/custom/tls.key
ports:
2022-01-18 01:51:44 +01:00
- containerPort: 8080
- containerPort: 4443
2022-01-03 08:37:09 +01:00
volumeMounts:
- mountPath: /opt/tactical
name: tactical-data
- mountPath: /etc/ssl/certs/custom
name: tactical-certs
- name: trmm-nats
2022-01-18 01:51:44 +01:00
image: tacticalrmm/tactical-nats:0.11.4-dev
2022-01-03 08:37:09 +01:00
resources: {}
env:
- name: API_HOST
value: api.rmm.mydomain.com
2022-01-18 01:51:44 +01:00
- name: NATS_CONFIG_CHECK_INTERVAL
value: "10"
2022-01-03 08:37:09 +01:00
ports:
- containerPort: 4222
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
status: {}