2022-04-21 10:18:35 +00:00
|
|
|
image:
|
2022-04-24 16:48:35 +00:00
|
|
|
repository: tccr.io/truecharts/meshcentral
|
2022-04-21 10:18:35 +00:00
|
|
|
pullPolicy: IfNotPresent
|
2022-04-26 10:21:41 +00:00
|
|
|
tag: v1.0.1@sha256:d8642b3909fcd1dad6b920629dac8e6e3a609230f38c9d62ca01ca67c26a4730
|
2022-04-21 10:18:35 +00:00
|
|
|
|
|
|
|
securityContext:
|
|
|
|
readOnlyRootFilesystem: false
|
|
|
|
runAsNonRoot: false
|
|
|
|
|
|
|
|
podSecurityContext:
|
|
|
|
runAsUser: 0
|
|
|
|
runAsGroup: 0
|
|
|
|
|
|
|
|
service:
|
|
|
|
main:
|
|
|
|
ports:
|
|
|
|
main:
|
|
|
|
protocol: "HTTPS"
|
|
|
|
port: 10205
|
|
|
|
|
|
|
|
initContainers:
|
|
|
|
init:
|
|
|
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
|
|
|
volumeMounts:
|
|
|
|
- name: data
|
|
|
|
mountPath: "/home/node/meshcentral/meshcentral-data"
|
|
|
|
env:
|
|
|
|
- name: svcPort
|
|
|
|
value: "{{ .Values.service.main.ports.main.port }}"
|
|
|
|
- name: "mongodbURL"
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: mongodbcreds
|
|
|
|
key: url
|
|
|
|
command: ["/bin/sh", "-c"]
|
|
|
|
args:
|
|
|
|
- >
|
|
|
|
export configfile='/home/node/meshcentral/meshcentral-data/config.json';
|
|
|
|
if [ -f $configfile ]; then
|
|
|
|
echo 'Config File exists, skipping...';
|
|
|
|
else
|
|
|
|
echo 'Creating basic config to $configfile...';
|
|
|
|
echo '{' >> $configfile;
|
|
|
|
echo ' "$schema": "http://info.meshcentral.com/downloads/meshcentral-config-schema.json",' >> $configfile
|
|
|
|
echo ' "settings": {' >> $configfile;
|
|
|
|
echo ' "port": '$svcPort',' >> $configfile;
|
2022-04-25 20:54:24 +00:00
|
|
|
echo ' "mongoDb": "'$mongodbURL'"' >> $configfile;
|
2022-04-21 10:18:35 +00:00
|
|
|
echo ' }' >> $configfile;
|
|
|
|
echo '}' >> $configfile;
|
|
|
|
fi;
|
|
|
|
|
|
|
|
mongodb:
|
|
|
|
enabled: true
|
|
|
|
mongodbUsername: meshcentral
|
|
|
|
mongodbDatabase: meshcentral
|
|
|
|
existingSecret: "mongodbcreds"
|
|
|
|
|
|
|
|
persistence:
|
|
|
|
data:
|
|
|
|
enabled: true
|
|
|
|
mountPath: "/home/node/meshcentral/meshcentral-data"
|
|
|
|
files:
|
|
|
|
enabled: true
|
|
|
|
mountPath: "/home/node/meshcentral/meshcentral-files"
|