-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
241 additions
and
157 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: RoleBinding | ||
metadata: | ||
name: mdicapsrv-worker-global | ||
subjects: | ||
- kind: ServiceAccount | ||
name: {{ .Values.icap_components.md_icapsrv.service_account_name }} | ||
namespace: {{ .Release.Namespace }} | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: Role | ||
name: mdicapsrv-worker-role |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
kind: Role | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
name: mdicapsrv-worker-role | ||
rules: | ||
- apiGroups: [""] # "" indicates the core API group | ||
resources: ["pods","secrets"] | ||
verbs: ["create","update","get","list","patch"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,9 @@ | ||
# apiVersion: v1 | ||
# kind: Secret | ||
# metadata: | ||
# name: {{ .Values.icap_components.md_icapsrv.tls.https.certSecret }} | ||
# namespace: {{ .Release.Namespace }} | ||
# type: Opaque | ||
# data: | ||
# {{ .Values.icap_components.md_icapsrv.tls.https.certSecretSubPath }}: "" | ||
# --- | ||
# apiVersion: v1 | ||
# kind: Secret | ||
# metadata: | ||
# name: {{ .Values.icap_components.md_icapsrv.tls.https.certKeySecret }} | ||
# namespace: {{ .Release.Namespace }} | ||
# type: Opaque | ||
# data: | ||
# {{ .Values.icap_components.md_icapsrv.tls.https.certKeySecretSubPath }}: "" | ||
# --- | ||
# apiVersion: v1 | ||
# kind: Secret | ||
# metadata: | ||
# name: {{ .Values.icap_components.md_icapsrv.tls.icaps.certSecret }} | ||
# namespace: {{ .Release.Namespace }} | ||
# type: Opaque | ||
# data: | ||
# {{ .Values.icap_components.md_icapsrv.tls.icaps.certSecretSubPath }}: "" | ||
# --- | ||
# apiVersion: v1 | ||
# kind: Secret | ||
# metadata: | ||
# name: {{ .Values.icap_components.md_icapsrv.tls.icaps.certKeySecret }} | ||
# namespace: {{ .Release.Namespace }} | ||
# type: Opaque | ||
# data: | ||
# {{ .Values.icap_components.md_icapsrv.tls.icaps.certKeySecretSubPath }}: "" | ||
# --- | ||
# apiVersion: v1 | ||
# kind: Secret | ||
# metadata: | ||
# name: {{ .Values.icap_components.md_icapsrv.tls.nginxs.certSecret }} | ||
# namespace: {{ .Release.Namespace }} | ||
# type: Opaque | ||
# data: | ||
# {{ .Values.icap_components.md_icapsrv.tls.nginxs.certSecretSubPath }}: "" | ||
# --- | ||
# apiVersion: v1 | ||
# kind: Secret | ||
# metadata: | ||
# name: {{ .Values.icap_components.md_icapsrv.tls.nginxs.certKeySecret }} | ||
# namespace: {{ .Release.Namespace }} | ||
# type: Opaque | ||
# data: | ||
# {{ .Values.icap_components.md_icapsrv.tls.nginxs.certKeySecretSubPath }}: "" | ||
# --- | ||
--- | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: {{ .Values.icap_components.md_icapsrv.custom_secret }} | ||
namespace: {{ .Release.Namespace }} | ||
annotations: | ||
"helm.sh/resource-policy": keep | ||
type: Opaque |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: {{ .Values.icap_components.md_icapsrv.service_account_name }} | ||
namespace: {{ .Release.Namespace }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
CONFIG_IMPORT_FILE: settings_export_package.zip # config/import_file in IGNITION_JSON | ||
CONFIG_IMPORT_PASSWORD: <CONFIG_IMPORT_PASSWORD> # config/import_password in IGNITION_JSON | ||
|
||
|
||
# For using a non-peristent local database uncomment the following variables and change the deploy_with_core_db to false | ||
#MDCORE_DB_MODE: "1" # Database mode | ||
#MDCORE_DB_TYPE: local # Database type | ||
#MDCORE_DB_HOST: localhost # Hostname / entrypoint of the database, this value should be changed any if using an external database service | ||
|
||
# Set to true if the respective database engine should also be deployed | ||
deploy_with_core_db: true # Enable or disable the local in-cluster PostgreSQL database | ||
|
||
core_components: | ||
postgres-core: | ||
is_db: true | ||
# persistentDir: /var/lib/postgresql/data | ||
persistentDir: null | ||
md-core: | ||
persistentDir: /home/metascan | ||
extraVolumeMounts: | ||
- name: md-core-store-config | ||
mountPath: /opt/ometascan/system/export_config | ||
extraVolumes: | ||
- nfsShare: | ||
name: nfs-store-volume | ||
nfs: | ||
server: <NFS_SERVER_IP> # A central NFS server IP to store the configuration zip file | ||
path: / | ||
readOnly: yes | ||
- name: md-core-store-config | ||
emptyDir: | ||
sizeLimit: 500Mi | ||
initContainers: | ||
- name: check-db-ready | ||
image: opswat/metadefendercore-debian:5.9.0 | ||
imagePullPolicy: IfNotPresent | ||
envFrom: | ||
- configMapRef: | ||
name: mdcore-env | ||
command: [ 'sh', '-c', | ||
'until pg_isready -h $DB_HOST -p $DB_PORT; | ||
do echo waiting for database; sleep 2; done;' ] | ||
- name: copy-config-zip-file | ||
image: opswat/metadefendercore-debian:5.9.0 | ||
imagePullPolicy: IfNotPresent | ||
envFrom: | ||
- configMapRef: | ||
name: mdcore-import-zip-config | ||
command: | ||
- /bin/bash | ||
- -exc | ||
- | | ||
cp -f /nfs-store-volume/${CONFIG_IMPORT_FILE} /opt/ometascan/system/export_config/${CONFIG_IMPORT_FILE} | ||
ls -la /opt/ometascan/system/export_config | ||
volumeMounts: | ||
- name: nfs-store-volume | ||
mountPath: /nfs-store-volume | ||
- name: md-core-store-config | ||
mountPath: /opt/ometascan/system/export_config | ||
- name: md-core-set-permission | ||
image: busybox:latest | ||
command: [ "sh","-c","chmod 777 /home/metascan" ] | ||
volumeMounts: | ||
- name: md-core | ||
mountPath: /home/metascan |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,4 +42,4 @@ long_description: | | |
type: application | ||
|
||
version: 5.8.0 | ||
version: 5.9.0 |
Oops, something went wrong.