2022-03-31 17:40:09 +00:00
|
|
|
image:
|
2022-04-22 10:27:50 +00:00
|
|
|
repository: tccr.io/truecharts/meshcentral
|
2022-03-31 17:40:09 +00:00
|
|
|
pullPolicy: IfNotPresent
|
2022-04-26 09:56:48 +00:00
|
|
|
tag: v1.0.1@sha256:d8642b3909fcd1dad6b920629dac8e6e3a609230f38c9d62ca01ca67c26a4730
|
2022-03-31 17:40:09 +00:00
|
|
|
|
|
|
|
securityContext:
|
|
|
|
readOnlyRootFilesystem: false
|
|
|
|
runAsNonRoot: false
|
|
|
|
|
|
|
|
podSecurityContext:
|
|
|
|
runAsUser: 0
|
|
|
|
runAsGroup: 0
|
|
|
|
|
|
|
|
service:
|
|
|
|
main:
|
|
|
|
ports:
|
|
|
|
main:
|
2022-04-01 18:27:33 +00:00
|
|
|
protocol: "HTTPS"
|
2022-03-31 17:40:09 +00:00
|
|
|
port: 10205
|
|
|
|
|
|
|
|
initContainers:
|
|
|
|
init:
|
|
|
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
|
|
|
volumeMounts:
|
2022-04-21 10:09:07 +00:00
|
|
|
- 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:44:58 +00:00
|
|
|
echo ' "mongoDb": "'$mongodbURL'"' >> $configfile;
|
2022-04-21 10:09:07 +00:00
|
|
|
echo ' }' >> $configfile;
|
|
|
|
echo '}' >> $configfile;
|
|
|
|
fi;
|
2022-03-31 17:40:09 +00:00
|
|
|
|
|
|
|
mongodb:
|
|
|
|
enabled: true
|
|
|
|
mongodbUsername: meshcentral
|
|
|
|
mongodbDatabase: meshcentral
|
|
|
|
existingSecret: "mongodbcreds"
|
|
|
|
|
|
|
|
persistence:
|
|
|
|
data:
|
|
|
|
enabled: true
|
2022-04-21 10:09:07 +00:00
|
|
|
mountPath: "/home/node/meshcentral/meshcentral-data"
|
|
|
|
files:
|
2022-03-31 17:40:09 +00:00
|
|
|
enabled: true
|
2022-04-21 10:09:07 +00:00
|
|
|
mountPath: "/home/node/meshcentral/meshcentral-files"
|