nplus-component-webdav#
nscale WebDAV Connector, providing a standard WebDAV interface to the Instance
Usage#
https://empty.lab.nplus.cloud/dav/nscalealinst1/Sample
nplus-component-webdav Chart Configuration#
You can customize / configure nplus-component-webdav by setting configuration values on the command line or in values files, that you can pass to helm. Please see the samples directory for details.
In case there is no value set, the key will not be used in the manifest, resulting in values taken from the config files of the component.
Template Functions#
You can use template functions in the values files. If you do so, make sure you quote correctly (single quotes, if you have double quotes in the template, or escaped quotes).
Global Values#
All values can be set per component, per instance or globally per environment.
Example: global.ingress.domain sets the domain on instance level. You can still set a different domain on a component, such as administrator.
In that case, simply set ingress.domain for the administrator chart and that setting will have priority:
- Prio 1 - Component Level:
ingress.domain - Prio 2 - Instance Level:
global.ingress.domain - Prio 3 - Environment Level:
global.environment.ingress.domain
Using Values in Templates#
As it would be a lot of typing to write .Values.ingress.domain | default .Values.global.ingress.domain | default .Values.global.environment.ingress.domainin your
template code, this is automatically done by nplus. You can simply type .this.ingress.domain and you will get a condensed and defaulted version
of your Values.
So an example in your values.yaml would be:
administrator:
waitFor:
- '-service {{ .component.prefix }}nappljobs.{{ .Release.Namespace }}.svc.cluster.local:\{{ .this.nappl.port }} -timeout 600'This example shows .this.nappl.port which might come from a component, instance or global setting. You do not need to care.
The .Release.Namespace is set by helm. You have access to all Release and Chart Metadata, just like in your chart code.
The .component.prefix is calculated by nplus and gives you some handy shortcuts to internal variables:
.component.chartNameThe name of the chart as in.Chart.Name, but with override by.Values.nameOverride.component.shortChartNameA shorter Version of the name -napplinstead ofnplus-component-nappl.component.prefixThe instance Prefix used to name the resources including-. This prefix is dropped, if the.Release.Nameequals.Release.Namespacefor those of you that only run one nplus Instance per namespace.component.nameThe name of the component, including.Values.nameOverrideand some logic.component.fullNameThe fullName inlcuding.Values.fullnameOverrideand some logic.component.chartMainly theChart.NameandChart.Version.component.storagePathThe path where the component config is stored in the conf PVC.component.handlerThe handler (either helm, argoCD or manual).instance.nameThe name of the instance, but with override by.Values.instanceOverride.instance.groupThe group, this instance belongs to. Override by.Values.groupOverride.instance.versionThe nscale version (mostly taken from Application Layer), this instance is deploying..environment.nameThe name of the environment, but with override by.Values.environmentNameOverride
Keys#
You can set any of the following values for this component:
| Key | Description | Default |
|---|---|---|
| env | Sets additional environment variables for the configuration. | |
| envMap | Sets the name of a configMap, which holds additional environment variables for the configuration. It is added as envFrom configMap to the container. | |
| envSecret | Sets the name of a secret, which holds additional environment variables for the configuration. It is added as envFrom secretRef to the container. | |
| fullnameOverride | This overrides the output of the internal fullname function | |
| image.name | the name of the image to use | "webdav-connector" |
| image.pullSecrets | you can provide your own pullSecrets, in case you use a private repo. | ["nscale-cr", "nplus-cr"] |
| image.repo | if you use a private repo, feel free to set it here | "registry.source.ceyoniq.com/ceyoniq-public/nscale/container/release" |
| image.tag | the tag of the image to use. The nscale images carry the tag of the newest version file (versions/latest.yaml), your own version file overrides it. The images of nplus itself (toolbox, operator, remote management server) leave it empty: it is the version of the chart. | "ubi.10.3.1000.223494" |
| ingress.annotations | Adds extra Annotations to the ingress. With the provider traefik they go on every IngressRoute (for example external-dns.kubernetes.io/target, which ExternalDNS needs there), not on the middlewares | |
| ingress.backend | sets the ingress controller backend template behavior (nginx or traefik) | nginx |
| ingress.backendProtocol | Overrides the default backend protocol. The default is http, unless in zeroTrust Mode, then it is switched to https automatically. | httphttps in zero trust mode |
| ingress.class | The ingressclass to use for this ingress. Most likely, this is provided globally by the instance, but you are free to override it here if this component should use a different class e.g. if you have separated ingress controllers, like a public and an internal one | public |
| ingress.contextPath | The default service context path for this ingress. Some components allow to change this (e.g. SharePoint), for the most though this is only a constant used in the scripts. | "/dav" |
| ingress.cookie | on component level, set cookie affinity for the ingress example: XtConLoadBalancerSession for nscale Web | |
| ingress.createSelfSignedCertificate | Generates a self signed certificate when no issuer is set. Within an instance or an environment the umbrella chart owns the certificate; a component deployed on its own renders it itself, so that its ingress does not point at a secret nobody creates. The certificate is regenerated on every render. | true |
| ingress.deny | deny is used to exclude specific paths from public access, such as administrative paths. For Example, in nappl, webc ist the hessian protocol, webb is the burlap protocol. The configuration service is the endpoint used by the Admin client. | |
| ingress.domain | Sets the domain to be used. This domain should be provided by the instance globally for all components, but you are free to override it here | |
| ingress.enabled | You can toggle the ingress on wether you’d like this component to be reachable through an ingress or not. | true |
| ingress.labels | Adds extra labels to everything the ingress path creates - the Ingress itself as well as the Traefik CRs (IngressRoute, Middleware, ServersTransport) and the Gateway API objects (Gateway, HTTPRoute). Needed where an admission policy enforces labels on these objects, for example traefik-scope: internal | |
| ingress.namespace | Specify the namespace in which the ingress controller runs. This sets the firewall rule / networkPolicy to allow traffic from this namespace to our pods. This may be a comma separated list | “ingress, kube-system, ingress-nginx, nginx-gateway” |
| ingress.provider | set the provider to ingress, traefik or gateway, depending on what type you prefer. ingress renders a classic Ingress object per component, traefik renders an IngressRoute per component that references the shared middlewares of the instance by name (see the instance chart), gateway renders Gateway API HTTPRoutes. | ingress |
| ingress.proxyReadTimeout | Sets the annotation nginx.ingress.kubernetes.io/proxy-read-timeout on the ingress object, if set. This is an annotation for nginx, so won’t work with other ingress controllers, like Traefik. | |
| ingress.sameSite | on component level, if you set cookie affinity, you can also set the sameSite setting (to strict, lax or none) | |
| ingress.secret | Sets the name of the tls secret to be used for this ingress, that contains the private and public key. These secrets can optionally be provided by the instance | {{ .this.ingress.domain }}-tls |
| ingress.traefik.cors.addVaryHeader | adds the Vary: Origin response header | true |
| ingress.traefik.cors.allowCredentials | whether credentials are allowed | true |
| ingress.traefik.cors.allowHeaders | list of allowed request headers | Authorization, Content-Type |
| ingress.traefik.cors.allowMethods | list of allowed methods | GET, POST, PUT, DELETE, OPTIONS |
| ingress.traefik.cors.allowOrigins | list of allowed origins, e.g. - https://apps.example.com | |
| ingress.traefik.cors.enabled | master switch for the CORS middleware of this component | |
| ingress.traefik.cors.maxAge | browser preflight cache duration in seconds | 600 |
| ingress.traefik.maxRequestBodyBytes | Component override for the request body limit in bytes. Renders a dedicated buffering middleware for this component, in addition to a possible instance wide limit (global.ingress.traefik.maxRequestBodyBytes) | |
| ingress.traefik.middlewares | Attaches additional existing middlewares to this component’s route. A list of name (+ optional namespace) refs, so you can bring your own middlewares without disabling the nplus routing | |
| ingress.traefik.rateLimit.average | allowed average requests per period | 100 |
| ingress.traefik.rateLimit.burst | allowed burst | 200 |
| ingress.traefik.rateLimit.enabled | master switch for the rate limit middleware of this component | |
| ingress.traefik.rateLimit.period | the period the average applies to | 1s |
| ingress.traefik.responseHeaderTimeout | Component override for the upstream response header timeout. Renders a dedicated ServersTransport for this component instead of the shared instance wide one (global.ingress.traefik.responseHeaderTimeout) | |
| ingress.traefik.sticky | Additional sticky cookie settings, merged over the defaults derived from ingress.cookie and ingress.sameSite. Accepts any field of the traefik sticky cookie, e.g. maxAge: 86400 or path: /nscale_web | |
| ingress.whitelist | optionally sets a whitelist of ip ranges (CIDR format, comma separated) from which ingress is allowed. This is an annotation for nginx, so won’t work with other ingress controllers | |
| initContainers | Optional hook to add your own init containers to any of the components. Will be omitted if empty. Example: initContainers: - name: myInit image: myImage command: [ “/startup.sh” ] | {} |
| javaOpts.javaMaxMem | set the maximum memory, java will consume. Attention: This is NOT the real maximum and it does not include any non Java memory. Please read google, as this is highly discussed | |
| javaOpts.javaMaxRamPercentage | set the percentage of RAM, Java will use of the total. The total amount is the amount installed in the K8s Cluster Node, OR the Memory Limit set (see resources), if any. | |
| javaOpts.javaMinMem | set the minimum memory, java will consume | |
| javaOpts.javaMisc | Any misc Java Options that need to be passed to the container | |
| meta.componentVersion | This is the version of the component, used for display set by devOps pipeline, so do not modify | info only, do not change"10.3.1000" |
| meta.language | Sets the language of the main service (in the service container). This is used for instance if you turn OpenTelemetry on, to know which Agent to inject into the container. | "java" |
| meta.partOf | The value of the label app.kubernetes.io/part-of, which every object and every pod carries. The default nscale is set in the values of the instance and the environment (global.meta.partOf); change it there to group an instance for dashboards and metric tools, for instance per tenant, or set it to an empty string ("") to drop the label. A app.kubernetes.io/part-of in template.labels wins on the pods. A component on its own has no default and renders no label. | |
| meta.ports.http | The http port this component uses (if any). In zero trust mode, this will be disabled. this is a constant value of the component and should not be changed. | info only, do not change8088 |
| meta.ports.https | The tls / https port, this component uses (if any) this is a constant value of the component and should not be changed. | info only, do not change8488 |
| meta.provider | sets provider (partner, reseller) information to be able to invoice per use in a cloud environment | |
| meta.serviceContainer | The container name of the main service for this component. This is used to define where to inject the telemetry agents, if any | "webdav-connector" |
| meta.stage | A optional parameter to indicate the stage (DEV, QA, PROD, …) this component, instance or environment runs in. This can be used in template functions to add the stage to for instance the service name of telemetry services like open telemetry. (see telemetry example) | |
| meta.tenant | sets tenant information to be able to invoice per use in a cloud environment | |
| meta.type | the type of the component. You should not change this value, except if you use a pipeliner in core mode. In core mode, it should be core, else pipeliner This type is used to create cluster communication for nappl and nstl and potentially group multiple replicaSets into one service. | "webdav" |
| meta.wave | Sets the wave in which this component should be deployed within an ArgoCD deployment if unset, it uses the default wave thus all components are installed in one wave, then relying on correct wait settings just like in a helm installation | |
| minReplicaCount | if you set minReplicaCount, a podDesruptionBudget will be created with this value as minAvailable, using the full component as selector. This is useful for components, that are using multiple replicas. | |
| minReplicaCountType | if you set minReplicaCountType, a podDesruptionBudget will be created with this value as minAvailable, using the component type as selector. This is useful for components, that are spread across multiple replicaSets, like sharepoint or storage layer | |
| mounts.caCerts.configMap | Alternative 2: the name of the configMap to use. The Key has to be the File Name used in the path setting | |
| mounts.caCerts.secret | Alternative 1: the name of the secret to use. The Key has to be the File Name used in the path setting | |
| mounts.componentCerts.configMap | Alternative 2: the name of the configMap to use. The Key has to be the File Name used in the path setting | |
| mounts.componentCerts.secret | Alternative 1: the name of the secret to use. The Key has to be the File Name used in the path setting | |
| mounts.conf.path | Sets the path to the conf files do not change this value | info only, do not change"/opt/ceyoniq/nscale-webdav/conf" |
| mounts.data.class | Sets the class of the data disk | |
| mounts.data.size | Sets the size of the data disk | |
| mounts.data.volumeName | If you do not want to have a Volume created by the provisioner, you can set the name of your volume here to attach to this pre-existing one | |
| mounts.disk.class | Sets the class of the disk | |
| mounts.disk.enabled | enables the use of the second data disk. If enabled, all paths defined will end up on this disk. In case of the (default) disabled, the paths will be added to the primaty data disk. | false |
| mounts.disk.migration | Enables the migration init container. This will copy the data in paths from the primary data disk to the newly enabled secondary disk. This is done only once and only if there is legacy data at all. No files are overwritten! | false |
| mounts.disk.size | Sets the size of the disk | |
| mounts.disk.volumeName | If you do not want to have a Volume created by the provisioner, you can set the name of your volume here to attach to this pre-existing one | |
| mounts.file.class | Sets the class of the shared disk | |
| mounts.file.size | Sets the size of the shared disk | |
| mounts.file.volumeName | If you do not want to have a Volume created by the provisioner, you can set the name of your volume here to attach to this pre-existing one | |
| mounts.generic | Allows to define generic mounts of pre-provisioned PVs into any container. This can be used e.g. to mount migration nfs, cifs / samba shares into a pipeliner container. | |
| mounts.logs.path | Sets the path to the log files do not change this value | info only, do not change"/opt/ceyoniq/nscale-webdav/logs" |
| mounts.logs.size | Sets the size of the log disk (all paths) | "1Gi" |
| mounts.temp.medium | Sets the medium of the temporary disk (all paths) optionally to Memory, which will create an in-memory tmpfs volume. This is useful for very fast temporary storage, but be aware that the data will be lost when the pod terminates and that it will consume memory resources of the node. | |
| mounts.temp.paths | Sets a list of paths to the temporary files do not change this value | info only, do not change["/opt/ceyoniq/nscale-webdav/temp", "/opt/ceyoniq/nscale-webdav/apache/temp", "/tmp"] |
| mounts.temp.size | Sets the size of the temporary disk (all paths) | "1Gi" |
| nameOverride | This overrides the output of the internal name function | |
| nappl.account | The technical account to login with | |
| nappl.domain | The domain of the technical account | |
| nappl.host | nappl host name | |
| nappl.instance | instance of the Application Layer, likely instance1 | |
| nappl.password | The password of the technical accunt (if not set by secret) | |
| nappl.port | nappl port (http 8080 or https 8443) | |
| nappl.secret | An optional secret that holds the credentials (the keys must be account and password) | |
| nappl.ssl | sets the Advanced Connect to tls | |
| nodeSelector | select specific nodes for this component | |
| priority.className | Set the priority class for the Application Layer deployment if desired | |
| priority.createClass | Creates an individual PriorityClass for this instance | |
| priority.value | Sets the priorityValue | 1000000 |
| probes | Optional means to override the default probes of the main container of the component | |
| replicaCount | Sets the number of replicas in this replicaSet. Some Components (like nstl or sharepoint) only allow a count of 1. | 1 |
| resources.limits.cpu | The maximum allowed CPU for the container | |
| resources.limits.memory | The maximum allowed RAM for the container | |
| resources.requests.cpu | Set the share of guaranteed CPU to the container. | |
| resources.requests.memory | Set the share of guaranteed RAM to the container | |
| revisionHistoryLimit | The revisionHistoryLimit sets the number of old revisions to keep in the deployment history for rollbacks of the deployment. K8s default is 10. Leave this empty to use the default. | |
| security.containerSecurityContext.allowPrivilegeEscalation | Some functionality may need the possibility to allow privilege escalation. This should be very restrictive you should not change this | info only, do not changefalse |
| security.containerSecurityContext.readOnlyRootFilesystem | sets the container root file system to read only. This should be the case in production environment you should not change this | info only, do not changetrue |
| security.podSecurityContext.fsGroup | The file system group as which new files are created there is normally no need to change this | info only, do not change1001 |
| security.podSecurityContext.fsGroupChangePolicy | Under which condition should the fsGroup be changed there is normally no need to change this | info only, do not change"OnRootMismatch" |
| security.podSecurityContext.runAsNonRoot | Declares that the container must run as a non-root user (Pod Security Standard “restricted”). The images run as 1001 anyway; this refuses to start a pod whose image would run as root (nplus/nplus#85). | true |
| security.podSecurityContext.runAsUser | The user under which the container ist run. Avoid 0 / root. The container should run in a non-root context for security there is normally no need to change this | info only, do not change1001 |
| security.zeroTrust | turns on Zero Trust Mode, disabling all http communication, even the internal http probes | false |
| service.annotations | adds extra Annotations to the service | |
| service.enabled | enables the service to be consumed by group components and a potential ingress Disabling the service also disables the ingress. | true |
| service.selector | The selector can be component or type component selects only pods that are in the replicaset. type selects any pod that has the given type | "component" |
| telemetry.openTelemetry | turns Open Telemetry on | |
| telemetry.serviceName | Sets the service name for the telemetry service to more convenient identify the displayed component Example: “{{ .this.meta.type }}-{{ .instance.name }}” | |
| template.annotations | set additional annotations for pods | |
| template.labels | set additional labels for pods | |
| terminationGracePeriodSeconds | Sets the terminationGracePeriodSeconds for the component If not set, it uses the Kubernetes defaults | |
| timezone | set the time zone for this component to make sure log output has a specific timestamp, internal dates and times are correct (like the creationDate in nappl) etc. | Europe/Berlin |
| tolerations | Set tolerations for this component | |
| updateStrategy | the update Strategy for this component. Normally, you can update all components rolling, except for nappl, where you need to follow the documented update procedures. | |
| utils.debug | Turn debugging on will give you stack trace etc. Please check out the Chart Developer Guide | false |
| utils.disableWait | in case you use the argoCD Wave feature, you might think about switching off the waitFor mechanism, that makes sure PODs are only started after pre-requisites are fulfilled. You can disable the starndard wait mechanism, but at your own risk, as this might start components even if they are not intended to run yet. | false |
| utils.disableWave | If you use argoCD, you most likely want to use the argo Wave Feature as well, making sure the components of an instance are deployed ordered. However, in DEV you might want to disable this to allow live changing components while previous waves are not finished yet. | false |
| utils.includeNamespace | By default, the namespace is rendered into the manifest. However, if you want to use helm template and store manifests for later applying them to multiple namespaces, you might want to turn this false to be able to use kubectl apply -n <namespace> -f template.yaml later | true |
| utils.maintenance | in Maintenance Mode, all waitFor actions will be skipped, the Health Checks are ignored and the pods will start in idle, not starting the service at all. This will allow you to gain access to the container to perform recovery and maintenance tasks while having the real container up. | false |
| utils.renderComments | You can turn Comment rendering on to get descriptive information inside the manifests. It will also fail on depricated functions and keys, so it is recommended to only switch it off in PROD | true |
| waitFor | Defines a list of conditions that need to be met before this components starts. The condition must be a network port that opens, when the master component is ready. Mostly, this will be a service, since a component is only added to a service if the probes succeed. |
Timzone (Package tzdata) setting#
You can set the timezone in the PODs by
- per Component:
timezone: "Europe/Berlin" - per Instance:
global.timezone: "Europe/Berlin" - per Environment:
global.environment.timezone: "Europe/Berlin"
This is compatible to the tzdata package. If the image you use uses a different timezone package und thus a environment variable other than TZ, you can also set any global ENV Variables by
- per Component:
env.TZ: "Europe/Berlin" - per Instance:
global.env.TZ: "Europe/Berlin" - per Environment:
global.environment.env.TZ: "Europe/Berlin"
If you do not set the timezone, it defaults to Europe/Berlin and the TZ env variable.
A key set on several levels appears once, with the value of the nearest level: component before instance before environment, like every other value. Different keys of all levels are combined. An explicit TZ in env wins over the timezone value. To remove a key that a lower level sets, use override: override.env.MYKEY: null.
Up to 26.3, the environment level won over the instance and the component for env. If you relied on that, set the value on the component or use override.
Placement#
The charts set a required (hard) inter pod anti-affinity: two replicas of the same set are never placed on the same node. A component therefore needs as many nodes as it has replicas; a replica without a free node stays Pending. The only exception is the Elasticsearch of aisearch, which only prefers to spread its pods across nodes.
This is done for nappl, rs, ilm, cmis, web, webdav based on instance, component and type For the nstl, this is handled by instance and type only, since the nstl does not use replicas and we are using different sets to ensure HA.
Additionally, you can set the scheduler to avoid or prefer specific nodes by setting tolerations and use nodeSelectors:
tolerationsList of Kubernetestolerationsto add to the componentnodeSelectorKubernetesnodeSelectorto add to the component
Maintenance Mode#
You can start the component in Maintenance Mode, starting the pod without starting the service, providing the possibility to gain access to the container to perform recovery tasks that need to be done offline.
In order to do this:
- All waitFor definitions are ignored
- All Health Checks are ignored
- The container starts in idle
minReplicaCountType#
If you set minReplicaCountType, a podDesruptionBudget will be created with this value as minReplicaCount. It will select pods based on the type of this component. This is used for components, that do not support multiple replicas (for example sharepoint or storage layer).
If the component does in fact support replicas, it is better to use minReplicaCount instead.
Also pay attention to only set this on one ReplicaSet of this type, not all.
Please refer to the HA sample for more information.
Specifying your own init container#
You can specify your own init container to any of the components by adding them unter the initContainers key:
initContainers:
- name: myInit
image: myImage
command: [ "/startup.sh" ]Any setting will be added to the template section of the component just like specified.
Common Image Configuration#
The image configuration consists of
- the Image Name
- the Image Repository
- the Image Tag
- the Image Pull Policy
If the Pull Policy is not set, it is automatically IfNotPresent.
Which tag runs#
- The nscale images (and the third-party images nscale needs) have the registry, name and tag of the newest nscale version
as their default. That default is only meant for test systems; it moves with every nplus release.
In production you stack your own version file with
--values: it sets registry, image name and tag of every nscale component, see the versioning guide. - The nplus images (toolbox, operator, remote management server) have an empty tag. It is the version of the chart that renders the image, so they always come with the chart you install and a version file cannot roll them back.
The Repository can be overridden at Instance Level and Environment Level to accomodate multiple stages:
image:
name: test
tag: 1.0.0
repo: git.42i.org/nplus # Prio 3
pullPolicy: Always
global:
repo: myrepo_i1 # Prio 4
repoOverride: myrepo_i2 # Prio 2
environment:
repo: myrepo_e1 # Prio 5
repoOverride: myrepo_e2 # Prio 1In this example, finding the repo to use would be:
$repo := global.environment.repoOverride | default global.repoOverride | default image.repo | default global.repo | default global.environment.repoOnce you override the repo, you might als want to override the pullSecrets globally to allow login to your private registry. Since you do not want to do that per image definition, you - just like the repos - can override that globally:
global:
pullSecretsOverride:
- myPrivateRegistrySecretThe override procedure is identical to the repo example above.
The Use Case is to easily enable you to download the images to a private and secure registry. nplus by default uses the official registries, but that is most likely not wanted by enterprise customers. So you can just set your own registry in the environment and keep dev, qa and prod apart and secured.
Common Storage Configuration#
This works just the same way as the Ingress settings: The Configuration can be performed at various levels:
- Per Component / Chart
storage. - Per Instance
global.storage. - Per Environment
global.environment.storage.
This enables you to have configuration yaml files per environment (e.g. for DEV, QA and PROD) setting environment defaults. You then do not have to touch the Instance configuration.
For storage, there are several volume types:
- conf, Shared File, RWX, global per environment
- data, Disk, RWO, optional per component
- disk, Disk, RWO, optional per component
- file, Shared File, RWX, optional per ReplicaSet
- temp, EmptyDir
- ptemp, Shared File, RWX, global per environment
- log, EmptyDir, should be empty, so just in case
- pool, optional path on the conf share mounted by some components
- generic, allows to mount any pre-defined PV into a container
conf#
The conf storage is a global PVC with RWX (file) shared by every component in the environment. The component creates a sub directory on the share and mounts it to the config directory in the container.
storage.conf.name sets the name of the PVC to be created and used.
mounts.conf.path defines the target directory in the container.
As the environment normally provides the conf share, you can set the class and the size in the environment.
If you habe your RWX storage class provided by a CIFS / SMB shared file system, you need to disable linux commands like chmod. This can be done in the storage environment settings:
global:
environment:
storage:
conf:
cifs: truedata#
Every component can create a data PVC with RWO (disk). You can set the class for this disk directly at the mount definition mounts.data.class. If unset, it uses the definition for the data class from global.storage.data.class or from the environment definition at global.environment.storage.data.class.
If the class is not defined, it is not included in the manifest and so the cluster default is taken.
Set the size at mounts.data.size. No default for the size.
disk#
The optional disk volume behaves exactly like the data volume and is used for components, that work better in production with two data disks for whatever reason. An example for this is the nstl, where the buffers are separated from the DA for performance reasons since 9.3.
If the disk is enabled, the configured paths will be mounted to the container on the defined disk.
If the disk is not enabled, the configured paths will be mounted to the container on the default data disk.
In case the migration is enabled, an init container will copy the data from the data location to the new disk location. Migration is only done once and only in the direction of the new disk volume.
Example:
mounts:
disk:
enabled: true
migration: true
paths:
- /data1
- /data2file#
Every component can create a file PVC with RWX (shared file). You can set the class for this share directly at the mount definition mounts.file.class. If unset, it uses the definition for the file class from global.storage.file.class or from the environment definition at global.environment.storage.file.class.
If the class is not defined, it is not included in the manifest and so the cluster default is taken.
Set the size at mounts.file.size. No default for the size.
This file mount is used for example for the nscale Rendition Server to create a common workload directory for all PODs across cluster nodes.
temp#
If a temp mount point is given in the values file, it creates an emptyDir volume with the sizeLimit of mounts.temp.size. If no limit is given, the volume will have no limit and the cluster node default is used.
If you want to back this volume by memory, specify mounts.temp.medium: Memory. Be aware, that this will utilize a RAM disk and count against your PODs resources.
The nscale Application Layer caches fulltext data in temp. Please be aware of your component behaviour when setting medium and size. Your plugins might be requireing speed or size.
ptemp#
ptemp is a shared, persistant version of temp. It is used to store temporary data, that needs to live beyond the life of a pod, like exports from the database or account logs from storage layer.
The ptemp is created by the environment and all pods are free to use it, just like conf.
logs#
If a logs mount point is given in the values file, it creates an emptyDir volume with the sizeLimit of mounts.logs.size. If no limit is given, the volume will have no limit and the cluster node default is used.
The components are writing logs to stdout and stderr, so the logs directory should not be necessary. This is just in case any plugin writes something to the contaainers file system.
Additionally, if you use the nplus Remote Management Server component, you might want the legacy way of reading log files, and this would be the storage for that.
pool#
You can define a path at mount.pool, then this component will have access. This is used to hand binary data to the components, such as plugins or nscale Generic Base Apps along with the nscale App Installer.
Pre-Created Persistent Volumes#
For security reasons, Persistent Volumes can be pre-created and then referenced by the PVC. In order to do so, you can set
storage.conf.volumeNamein the environment configuration to set a specific volume reference for the config share, andmounts.data.volumeNamein each components values to set a specific volume reference for the (optional) data volume, as well asmounts.file.volumeNamein each components values to set a specific volume reference for the (optional) file volume
As the volume is specific to a certain volume, it cannot be set globally.
Setting storage values#
| Key | Component | Instance | Environment |
|---|---|---|---|
| conf.name | ✔︎ | ✔︎ | conf |
| data.class | ✔︎ | ✔︎ | ✔︎ |
| data.size | ✔︎ | - | - |
| data.paths | predefined list | - | - |
| data.volumeName | ✔︎ | - | - |
| disk.class | ✔︎ | ✔︎ | ✔︎ |
| disk.size | ✔︎ | - | - |
| disk.paths | predefined list | - | - |
| disk.volumeName | ✔︎ | - | - |
| file.class | ✔︎ | ✔︎ | ✔︎ |
| file.size | ✔︎ | - | - |
| file.paths | predefined list | - | - |
| file.volumeName | ✔︎ | - | - |
| temp.size | ✔︎ | - | - |
| temp.medium | ✔︎ | - | - |
| temp.path | predefined | - | - |
| logs.size | ✔︎ | - | - |
| logs.medium | ✔︎ | - | - |
| logs.path | predefined | - | - |
Avoid to change the values marked as predefined.
Working with Certificates#
There are two types of certificates than you might want to customize in your deployment:
- (Root-) Certificate Authorities
- Private Certificates and Key Files
Root CA extensions will be needed if you want to access other services via https (egress), that have certificates signed by a non-default authority. In that case, you can upload the authority (public) certificate to trust it.
The process differs from component to component, as some are written in java (and require the certificate to be inside a keystore) and others are written in C++ or else and might require a PEM certificate store (like the Storage Layer).
First thing is to create the store in whatever format it is needed and then upload it into a secret. Within the helm values, you can then set the destination path and file name next to the secret where you stored the certificate. There can be multiple certificates.
mounts:
caCerts:
paths:
- "/etc/pki/tls/certs/ca-bundle.crt"
- "/usr/lib/jvm/jre/lib/security/cacerts"
secret: ca-secretIn this example, the secret ca-secret needs to hold two files:
- a cacerts file (under that key), which is a java keystore file and will be placed as the cacerts file in the Java deployment of the component (In this case the NAPPL).
- a ca-bundle.crt file which is a PEM format file that holds all trusted CAs you need.
The paths list defines the path and filename of the target as well as the key of the files within the secret.
In Storage Layer, this might look like this:
mounts:
caCerts:
paths:
- "/opt/ceyoniq/nscale-server/storage-layer/etc/CA.CER"
secret: ca-secretIn this case, the Sorage Layer requires the root ca certs to be a file of exactly this name in the etc directory of the deployment. Please consult the storage layer manual for more information.
component Certificates and Key files are normally used to hold private tls certificates to encrypt https traffic (ingress).
The configuration of these keystores is identical to the ca stores:
mounts:
componentCerts:
paths:
- "/opt/ceyoniq/nscale-server/application-layer/conf/certificates.store"
secret:In this case, the secret must have a key named certificates.store that holds the java keystore with the required certificates.
Please note, that alternatively, you can also upload this file to the conf directory of the application layer. If you do not specify a secret, this mount will not be implemented.
Uploading to this file to the conf would be like this:
kubectl cp certificates.store nplus-toolbox-0:/conf/<myInstance>/napplAlternatively, you can also define a configMap for the public CA certificates, then the configuration would be like this:
mounts:
caCerts:
paths:
- "/opt/ceyoniq/nscale-server/storage-layer/etc/CA.CER"
configMap: ca-mapUsing the generic mount interface#
This allows you to mount any pre-provisioned PVs, secret or configMap as a directory or single file into any container. It can be used e.g. to mount migration nfs, cifs / samba shares into a pipeliner container.
Use the following format:
mounts:
generic:
- name: <name>:
path: <the path in the container, where you want to mount this>
volumeName: <the name of the PV to be mounted>
configMap: <the name of the configMap to bemounted>
secret: <the name of the secret to bemounted>
subPath: [a (optional) subpath to be used inside the PV]
accessMode: <ReadWriteMany|ReadWriteOnce|ReadOnlyMany|ReadWriteOncePod>
size: <size request>
medium: <"Memory" to request a RAM Drive>Please see the generic sample in the samples directory for detailes.
Security settings#
You can set the security options per component, per instance or per environment. The priority is:
- component
- instance
- environment
It is recommended to set the security per environment to make sure you do not forget a component.
Illumio#
Example environment setting for Illumio:
global:
environment:
security:
illumio:
enabled: true
loc: "mylocation"
supplier: "mysupplier"
platform: "myplatform"
readinessGates:
- conditionType: "com.illumio.policy-ready"CNI, such as Calico or Cilium#
Example environment setting for CNI:
global:
environment:
security:
cni:
defaultIngressPolicy: deny
defaultEgressPolicy: deny
createNetworkPolicy: true
excludeUnusedPorts: falseexcludeUnusedPorts can add a port config to your ingress rules. However, not every CNI is capable of all Attributes (like EndPort is currently not supported by cilium).
So you can switch this off, if your CNI does not support it.
zeroTrust Policy#
Some Tools like Cilium transparently encrypt the Node to Node traffic in a Cluster. If you, however, want to aditionally deny all http traffic within a node, you can
enable zeroTrust by setting:
global:
security:
zeroTrust: truePlease make sure you also set all backendProtocols to https. For a complete example, please see the sample values file zerotrust.yaml in the samples directory.
Encrypted backend#
An optional approach to zeroTrust (see above) is to set the backendProtocol to https. This leaves the http ports available (zeroTrust would not), but switches the component backend traffic to https (for ingress, probes, …).
It is not as strict as zeroTrust and can be set per component like this:
ingress:
backendProtocol: httpsPlease see the example file encrypt.yaml in the samles directory for more information.
Security Context#
You can add a containerSecurityContext to the component by adding it in the values file:
security:
containerSecurityContext:
capabilities:
drop: ["ALL"]Additionally, add a podSecurityContext if desired:
security:
podSecurityContext:
runAsNonRoot: true
runAsUser: 1000
runAsGroup: 1000Note: This setting can not be set on instance or environment level.
Rootless and seccomp by default (26.4)#
The chart defaults declare the two fields the Pod Security Standard “restricted” asks for:
runAsNonRoot: true— the images run as user 1001 anyway (except the database images, which use their own non-root user); this field makes the kubelet refuse to start a pod whose image would run as root.seccompProfile.type: RuntimeDefault— the container runtime’s default profile, a declaration without a change in behaviour.
With readOnlyRootFilesystem, allowPrivilegeEscalation: false and capabilities.drop: ["ALL"] (which the
charts set already), a rendered workload passes a “restricted” Pod Security Admission. Keep fsGroup at the
image’s file system group (1001 for the nscale images, 999 for PostgreSQL) — it is not a style choice: a
different group breaks the permissions on existing volumes.
Handing Resources to Components#
By default, no resources are set on the container. Thus, Kubernetes handles the container with best effort.
Resources can be set at
| Key | Description | Default |
|---|---|---|
| resources.requests.cpu | sets the request, which is the minimum guaranteed | - |
| resources.requests.memory | sets the request, which is the minimum guaranteed | - |
| resources.limits.cpu | sets the limit, which is the maximum allowed | - |
| resources.limits.memory | sets the limit, which is the maximum allowed | - |
- if nothing is defined, Kubernetes handles it BestEffort
- if requests are defined, but no limits, Kubernetes handles it Burstable
- if requests and limits are defined for cpu and memory and the requests equal the limits, Kubernetes handles it Guaranteed (otherwise Burstable)
Please take caution when setting parameters and also have a look at this interesting article regarding resources and JVM resource handling:
https://xebia.com/blog/kubernetes-and-the-jvm/
Definig Java VM Resources#
For those components implemented in Java, it is possible to set Java Options:
- nscale CMIS Connector
- nscale ILM Connector
- nscale Application Layer
- nscale Rendition Server
- nscale Web
| Key | Description | Default |
|---|---|---|
| javaOpts.javaMaxRamPercentage | Maximum memory given to Java in % | - |
| javaOpts.javaMinMem | Minimum memory given to Java | - |
| javaOpts.javaMaxMem | Maximum memory given to Java | - |
| javaOpts.javaMisc | Additional Java Options | - |
Note: if you defined settings for appDynamics, the agent will automatically be added to the Java Options when the above components are run. Please refer to
global.appDynamics.agentfor more information.
Why we do not set the JVM options of the vendor examples#
The Ceyoniq examples set JAVA_OPTS per component: -XX:MaxRAMPercentage=50.0 -Duser.country=DE -Duser.language=de, plus -Dlog4j2.formatMsgNoLookups=true and
two -Dcom.sun.jndi.* options on mon and rs. We deliberately do not ship
these as defaults (nplus/nplus#95):
MaxRAMPercentagepresumes a memory limit on the container; our line is do not limit RAM for Java (the heap is only part of it — metaspace, code cache, thread stacks, GC), so the percentage has nothing to bite on.-Duser.language=de -Duser.country=DEpins the locale: wrong for an installation whose users write another language, and nothing the chart should decide. Set it throughjavaOpts.javaMiscif you want it — or better, throughTZand your application configuration.- the Log4j and JNDI options date from the Log4Shell era; on the current Log4j and JDK releases they are without effect. They are not wrong, they are dead weight in every start command.
If your security policy asks for them anyway, they are one javaOpts.javaMisc
line away — the values pass them through.
Working with multiple replicas#
If you define multiple replicas for your component (attention: not every component can handle multiple replicas, like nstl or sharepoint), you can also specify a mininimum amount of replicas that need to be available to run the system. The additional setting
replicaCount: 2
minReplicaCount: 1will make sure that at least one replica is available by defining a podDisruptionBudget for this component.
The components that can not handle multiple Replicas, normally habe multiple ReplicaSets define with one (1) replica each to compensate. In this case, you can define the minReplicaCountType, which selects pods across type and not across components.
Please refer to the HA sample for more information.
Common Ingress Configuration#
The Ingress Configuration can be performed at various levels:
- Per Component / Chart
ingress. - Per Instance
global.ingress. - Per Environment
global.environment.ingress.
This enables you to have configuration yaml files per environment (e.g. for DEV, QA and PROD) setting environment defaults. You then do not have to touch the Instance configuration.
Example:
helm upgrade -i \
--values $SAMPLES/big-instance.yaml \
--values $SAMPLES/applications.yaml \
--values $SAMPLES/dev.yaml \
demo nplus/instance-argoYou might have your Instance values in the big-instance file, the Apps you want to have deployed to that instance
in the applications file, and then you add your default setting for the dev stage, potentionally overwriting anything
from the above. The priority in this is last one wins.
The Values are taken by the chart in the following order: Component, then Instance, then Environment.
If no value is set, the configuration is dropped from the manifest.
In the following table, you see what value can be defined in which section:
| Key | Component | Instance | Environment |
|---|---|---|---|
| provider | ✔︎ | ✔︎ | ✔︎ |
| backend | ✔︎ | ✔︎ | ✔︎ |
| domain | ✔︎ | ✔︎ | ✔︎ |
| issuer | ✔︎ | ✔︎ | ✔︎ |
| class | ✔︎ | ✔︎ | public |
| enabled | ✔︎ | - | - |
| backendProtocol | ✔︎ | - | - |
| cookie | ✔︎ | - | - |
| inputPath | ✔︎ | - | - |
| deny | ✔︎ | - | - |
| whitelist | ✔︎ | ✔︎ | ✔︎ |
| namespace | ✔︎ | ✔︎ | ✔︎ |
| labels | ✔︎ | ✔︎ | ✔︎ |
For the component ingress, you can specify the following values:
| Key | Description | Default |
|---|---|---|
| provider | chose the kind of objects to publish this component with: ingress (a Kubernetes Ingress), traefik (native Traefik CRDs) or gateway (Gateway API) | "ingress" |
| backend | chose for either nginx or traefik as your backend ingress controller, as the annotations differ. Only evaluated with provider: ingress | "nginx" |
| backendProtocol | choose wether you want http or https as the backend protocol. This will encrypt traffic from the ingress controller to your pods if you set it to https. | "http" |
| class | sets the ingressclass to use. e.g. public or nginx | "public" |
| cookie | on component level, set cookie affinity for the ingress example: XtConLoadBalancerSession for nscale Web | component dependent |
| domain | sets the ingress domain, like tenant1.mydomain.com. If no domain is set, no ingress will be configured automatically | none |
| enabled | on component level, enable or disable the ingress | component dependent |
| inputPath | this defines the path (on component level) for this component Example: nscale_web for nscale Web | component dependent |
| issuer | if you use cert-manager or any other certificate issuer, you can add the class here to hand certificate issuing requests to this issuer. if you do not set any issuer, the chart will generate a self-signed certificate for your ingress (if you defined a domain) | |
| deny | you can specify specific paths to be denied by this ingress | component dependent |
| whitelist | optionally specify a list of allowed ip ranges to use an ingress | not restricted |
| namespace | when securing the instance with network policies, you can specify the source namespace of the ingress controller | “ingress” |
| annotations | adds extra annotations | |
| labels | adds extra labels to every object the ingress path creates (Ingress, Traefik CRs, Gateway API objects) — for clusters that enforce them |
Please the the FAQ for information about using a DMZ, where additional cluster configuration will be necessary
Annotations#
You can add extra Annotations to the ingress by adding
global:
ingress:
annotations:
nginx.org/proxy-connect-timeout: "30s"
nginx.org/proxy-read-timeout: "20s"
nginx.org/client-max-body-size: "4m"
nginx.org/server-snippets: |
location / {
return 302 /coffee;
}Labels on the generated objects#
Some clusters enforce labels on the objects an ingress creates. A Kyverno policy
may for instance require a traefik-scope label on every Traefik CR and
reject the whole deployment when one is missing:
admission webhook "validate.kyverno.svc-fail" denied the request:
resource IngressRoute/<namespace>/<name> was blocked due to the following policies
restrict-traefik-cr-without-scope-labels: ...
must be set to either internal or publicingress.labels puts extra labels on everything the ingress path creates — the
Ingress itself as well as IngressRoute, Middleware, ServersTransport,
HTTPRoute and Gateway. Set once on environment or instance level, it covers
every component and the shared objects alike:
global:
ingress:
labels:
traefik-scope: internalThe computed nplus labels stay untouched; these are added to them.
Traefik#
If Traefik is the ingress controller of your cluster, there are two ways to publish a component. Both are supported — they differ in the kind of objects the chart creates, and therefore in how much of Traefik you can configure from your values.
provider: ingress + backend: traefik | provider: traefik | |
|---|---|---|
| Objects | Ingress + a few Middleware | IngressRoute, Middleware, ServersTransport |
| Configured by | annotations on the Ingress | native CRD fields |
| Sticky cookie | annotation, name only | native, incl. maxAge, path, sameSite |
| Body size, timeouts | not available | maxRequestBodyBytes, responseHeaderTimeout |
| CORS, rate limiting | not available | per component |
| Own middlewares | not attachable | ingress.traefik.middlewares |
| Denied paths | routed to the void service | answered with 403 |
| Portable to another controller | yes, it stays an Ingress | no, Traefik only |
Take the annotations variant if the manifests should stay portable and you only need the basics. Take the native variant if you actually want to configure Traefik, or if you want to attach middlewares of your own.
Both can be mixed: ingress.provider may be overridden on a single component, and
ingress.enabled: false takes a component out of the nplus routing entirely, so you
can route it yourself.
Ingress with Traefik annotations#
Keep the provider at ingress and switch the backend:
global:
ingress:
provider: ingress
backend: traefik
class: traefikThe chart then writes Traefik annotations instead of NGINX ones — the backend scheme and,
if ingress.cookie is set, the sticky cookie. For those features that have no annotation,
a Middleware is generated per component and bound to the Ingress via
traefik.ingress.kubernetes.io/router.middlewares:
| Value | Generated middleware |
|---|---|
ingress.appRoot | <component>-approot, a redirectRegex from the host root to the appRoot |
ingress.inputPath + ingress.rewriteTarget | <component>-rewrite, a replacePathRegex |
ingress.whitelist | <component>-whitelist, an ipAllowList |
Note that these are created per component: five components with an appRoot also mean
five identical redirect middlewares. Anything beyond that (body limits, timeouts, CORS,
rate limiting) is not reachable from the values in this variant.
Native Traefik CRDs#
With provider: traefik, the chart skips the Ingress object and writes Traefik resources
directly:
global:
ingress:
provider: traefik
class: traefikEvery component renders its own IngressRoute — exactly as it renders its own Ingress
in the other variants, so a single component chart still works on its own. Traefik merges
all IngressRoutes of a namespace into one routing table anyway.
What exists once per instance are the cross cutting middlewares. They are rendered by
the instance chart and referenced by the components by name (<prefix>instance-…):
| Instance value | Generated once per instance |
|---|---|
global.ingress.appRoot | redirectRegex middleware and the route for the host root |
global.ingress.whitelist | ipAllowList middleware |
global.ingress.traefik.maxRequestBodyBytes | buffering middleware |
global.ingress.traefik.responseHeaderTimeout | ServersTransport |
Whether a component references such a middleware is decided by the very value that makes the instance render it, so the two cannot drift apart. Deployed standalone — a single component chart without an instance — the component renders its own copies instead; it is alone, so nothing is duplicated.
Per component, a middleware is only created where the content really differs:
cmis:
ingress:
traefik:
cors:
enabled: true
allowOrigins:
- https://apps.example.com
rateLimit:
enabled: true
average: 100
burst: 200
# attach middlewares you created yourself
middlewares:
- name: my-own-middleware
namespace: infraSticky sessions are configured natively on the route service. Cookie name and sameSite
come from the values you already use, everything else is merged in from
ingress.traefik.sticky:
web:
ingress:
cookie: XtConLoadBalancerSession
sameSite: none
traefik:
sticky:
maxAge: 86400
path: /nscale_webDenied paths (ingress.deny) become rules of their own with a blocking middleware and are
answered with 403. Traefik prefers the longer rule, so they always win over the
component route — without depending on the void service, which only exists inside an
instance.
The following keys are available below ingress.traefik on component level:
| Key | Description | Default |
|---|---|---|
| cors.enabled | renders a CORS middleware for this component. Requires allowOrigins | not set |
| cors.allowOrigins | list of allowed origins | not set |
| cors.allowMethods | list of allowed methods | GET, POST, PUT, DELETE, OPTIONS |
| cors.allowHeaders | list of allowed request headers | Authorization, Content-Type |
| cors.allowCredentials | whether credentials are allowed | true |
| cors.maxAge | preflight cache duration in seconds | 600 |
| cors.addVaryHeader | adds the Vary: Origin response header | true |
| rateLimit.enabled | renders a rate limit middleware for this component | not set |
| rateLimit.average | allowed average requests per period | 100 |
| rateLimit.burst | allowed burst | 200 |
| rateLimit.period | the period the average applies to | 1s |
| sticky | additional sticky cookie fields, merged over the defaults derived from ingress.cookie and ingress.sameSite | not set |
| maxRequestBodyBytes | component override for the request body limit, in addition to a possible instance wide limit | not set |
| responseHeaderTimeout | component override for the upstream timeout, replaces the shared ServersTransport for this component | not set |
| middlewares | list of existing middlewares to attach to this component’s route (name, optional namespace) | not set |
And these below global.ingress.traefik on instance level:
| Key | Description | Default |
|---|---|---|
| entryPoints | the Traefik entrypoints the routes bind to | websecure |
| maxRequestBodyBytes | request body limit in bytes, shared by the whole instance | not set |
| responseHeaderTimeout | upstream response header timeout, shared by the whole instance | not set |
| insecureSkipVerify | skip upstream certificate verification on the shared ServersTransport | not set |
| extraRoutes | raw IngressRoute route entries, rendered verbatim into an IngressRoute of their own | not set |
If the generated routes do not cover a case, append your own:
global:
ingress:
traefik:
extraRoutes:
- match: Host(`demo.example.com`) && PathPrefix(`/custom`)
kind: Rule
services:
- name: my-backend
port: 8080The certificate of a component standing alone#
The TLS certificate belongs to the domain, so within an instance - or within an
environment - the umbrella chart renders it exactly once and every component
refers to the same secret (ingress.secret, by default <domain>-tls).
A component deployed on its own has no umbrella above it. It therefore
brings its own certificate: with ingress.issuer set, a Certificate for your
issuer; without one, a self signed secret, which you can switch off with
ingress.createSelfSignedCertificate: false. Without this the component would
point at a secret that nobody creates - and Traefik, having no certificate for
the host, would answer with its default one, which looks like a broken TLS
setup rather than a missing object.
Two properties of the self signed case are intentional:
- Several components standing alone in the same namespace use the same
secret name and overwrite each other’s certificate. If that is your setup,
give them their own
ingress.secret- or an issuer. - The self signed certificate is generated anew on every render, so it is always current. A GitOps tool that compares manifests will therefore see it change on every run. In production nobody should run on a self signed certificate; in development a fresh one is the more useful behaviour.
TLS is unchanged in both variants: the certificate is the one of
ingress.secret(by default<domain>-tls), issued by youringress.issueror generated by the chart.