[en] After you've installed and started K3s, you’ll need to configure the Acrolinx Operator.
[en] You’ll make most of your platform settings in the configuration directory. However, the Acrolinx Operator that bootstraps and manages the Acrolinx Platform in the cluster needs its own Kubernetes-native configuration. Learn how to configure this for Standard Stack below.
Hinweis
[en] Before you start, make sure that you've:
-
[en] Installed K3s.
-
[en] Connected to the internet from your server.
-
[en] Downloaded your credentials for the Acrolinx download area.
[en] Configure the Acrolinx Operator that bootstraps and manages the Acrolinx Platform in your Kubernetes cluster.
Anmerkung
[en] You'll need some experience with Linux-based operating systems, including the vi editor.
[en] Download the acrolinx.yaml
file from GitHub. You can also do so from the command line.
[en] Copy the following:
curl https://raw.githubusercontent.com/acrolinx/helm/gh-pages/resources/core-platform/helm/k3s-crd/2022.12/acrolinx.yaml > acrolinx.yaml
[en] It'll look something like this:
apiVersion: v1 kind: Namespace metadata: name: acrolinx-system --- apiVersion: v1 kind: Namespace metadata: name: acrolinx --- apiVersion: helm.cattle.io/v1 kind: HelmChart metadata: name: acrolinx namespace: acrolinx-system spec: repo: https://acrolinx.github.io/helm/ chart: acrolinx-platform version: "" set: ### Guidance package [...] ### Image download - Enter your credentials for the Acrolinx download area ### to be able to download the container images. images.downloadAreaUser: "" images.downloadAreaPwd: "" ### Configuration directory [...] ### Name of the secret that contains the TLS certificate. platform.spec.ingress.tlsSecretName: "" ### A list of feature flags that should be enabled. Our support staff may ask you to add flags here. Format: "{feature-1,feature-2}" platform.features: "{}" valuesContent: |- platform: spec: [...] configuration: ### Override settings from the `server/bin/coreserver.properties`. coreserver.properties: "" ### Database settings. ### Preconfigured to work with the test database. persistence: ### Set to `true` to install Postgres test databases into the cluster. ### Never set to `true` in a production system!! installTestDB: false
[en] Once you’ve added all of your configurations, you're ready to install the Acrolinx Platform.
[en] Open the .yaml
file and make changes to the sections shown in the examples below. To modify these sections, you can open the file in a text editor of your choice.
[en] You can also make changes via the command line. To edit the file via the command line, use:
vi acrolinx.yaml
[en] Each Acrolinx version comes with its own Helm chart version. It looks something like this: 1.0.3+2021.05
. The version string is based on the version number of the operator and includes the platform version <operator version>+<platform version>
. This will change with every release. You can keep track of this in our Standard Stack Compatibility Guide.
[en] To change the Helm chart version, do the following:
-
[en] Go to the
version
field underspec
. -
[en] Within the
" "
next toversion
, add the version number for the Helm chart you want to use.
[en] It might look like this:
spec: repo: https://acrolinx.github.io/helm/ chart: acrolinx-platform version: "x.x.x+xxxx.xx"
[en] When you first start working with Acrolinx, you'll receive a guidance package from us. It comes with customized writing guidance based on the requirements of your organization. This includes your company-specific style guidelines and terminology. You’ll find all available guidance package image builds in your Acrolinx download area.
[en] Your guidance package container image starts with the prefix acrolinx/guidance
. A container image is a copy of a container — the files and components within it that make up an application. Once a container image is created, it forms a kind of template. This is used to create new apps or expand on and scale an existing app.
[en] After you identify your guidance package version, specify the name of your guidance package. The name appears after acrolinx/guidance/
. For example, acrolinx
in acrolinx/guidance/acrolinx
.
[en] To specify the name of your guidance package, do the following:
-
[en] Go to the
platform.spec.guidance
field underspec
. -
[en] Within the
" "
next toplatform.spec.guidance
, add the version number for the guidance package you want to use.Tipp
[en] Be sure to use a colon to separate the name and build number.
[en] It might look like this:
spec: set: ### [...] platform.spec.guidance: "acrolinx:xxxx.xx-45078"
[en] Platform Image Pull Credentials
[en] Acrolinx distributes your Acrolinx Platform images via a private container registry. The credentials for that registry are temporary. You can get them and refresh them through the Acrolinx download area. The Helm installation does this automatically.
[en] Enter your credentials for your Acrolinx download area as follows:
-
[en] Go to the
images.downloadAreaUser
field underspec
. -
[en] Within the
"< >"
next toimages.downloadAreaUser
, add your Acrolinx username. -
[en] Next to
images.downloadAreaPwd
, add your password within the"< >"
.
[en] For example:
spec: set: ### [...] images.downloadAreaUser: "<user>" images.downloadAreaPwd: "<password>"
[en] It’s best if you run Acrolinx as a particular user, for example acrolinx
, instead of with root privileges.
[en] Not sure what your user and group IDs are? Find them out as follows:
-
[en] Get the user ID with the following command:
id -u acrolinx
-
[en] Get the group ID with the following command:
id -g acrolinx
[en] To set the user ID and group ID, do the following:
-
[en] Go to the
platform.spec.securityContext.runAsUser
field underspec
. -
[en] Next to
platform.spec.securityContext.runAsUser
, add your user ID. -
[en] Then, add your group ID in the
platform.spec.securityContext.runAsGroup
field underspec
. -
[en] Next to
platform.spec.securityContext.runAsGroup
, add your group ID.
[en] This might look something like this:
spec: set: ### [...] platform.spec.securityContext.runAsUser: uid platform.spec.securityContext.runAsGroup: gid
[en] Acrolinx comes with files that you can update and customize based on your needs. You can edit overlay copies of these files in your configuration directory to configure your Acrolinx installation. To store your platform configuration permanently, a configuration directory needs to exist on the machine that’s running the cluster. You'll need to mount that directory into the Acrolinx Platform.
[en] To mount that directory into the Acrolinx Platform, do the following:
-
[en] Go to the
platform.spec.coreServer.overlayDirectory.volumeSource.hostPath.path
field underspec
. -
[en] Next to
platform.spec.coreServer.overlayDirectory.volumeSource.hostPath.path
, enter the absolute path to the directory.
[en] For example:
spec: set: ### [...] platform.spec.coreServer.overlayDirectory.volumeSource.hostPath.path: /home/acrolinx/config
[en] As part of the Acrolinx Platform definition, you can set the number of language servers and the language configurations they load. You’ll configure the language servers topology in the platform.spec.languageServers
list.
[en] Each item in the list has the following subsettings:
-
[en]
name
-
[en] An arbitrary name for a group of language servers.
-
-
[en]
languages
-
[en] List of language codes.
-
[en] This starts a language server for each language you list.
-
-
[en]
template.containers
:-
[en] Settings to customize the respective containers’ memory limits.
-
[en] Leave the
name: language-server
setting as is.
-
[en] To configure your language servers, do the following:
-
[en] Go to the
languageServers
field underspec
. -
[en] Next to
name
, specify an arbitrary name for the group of language servers. -
[en] Next to
languages
, list the language codes for the servers you'd like to use. -
[en] Optional: Adjust the
replicas
setting. This determines how often Acrolinx assigns the completelanguages
list. For example, if you set it to 3, each list item will get assigned three times. The default is 1. -
[en] Optional: Configure memory assignment by group. There might be cases where you want more than one group of language servers. This is useful when you need to check large and small documents at the same time, for example. In this case, the core server will assign larger documents to language servers with more memory. You can use language server groups to deploy language servers with different memory dimensions side by side. Learn more about language server groups.
spec: ### [...] valuesContent: |- platform: spec: languageServers: - name: default languages: [ en, de, sv ] replicas: 1
[en] Acrolinx stores terminology, analytics, and reporting data in databases. When you install the Acrolinx Platform, the following come with a default database:
-
[en] The Terminology Manager
-
[en] The Analytics database
-
[en] The reporting database
[en] Acrolinx freely distributes the default databases, but you should only use them for test purposes. Connect Acrolinx to a database other than the freely distributed database formats that come with the Acrolinx Platform.
[en] Disable the Test Database
[en] The containerized Acrolinx Platform comes with a built-in test database. This lets you start the platform immediately without any further configuration. You can use this database while you configure and test your installation.
Warnung
[en] Don’t use the test database in production. See Configure Production Database Connections to learn how to configure database connections for production systems.
[en] To disable the test database, do the following:
[en] For example:
spec: ### [...] valuesContent: |- platform: spec: ### [...] persistence: ### Set to `true` to install Postgres test databases into the cluster. ### Don't do that on a production system!! installTestDB: false
[en] Configure Production Database Connections
Anmerkung
[en] To configure a connection to the Target Service database or the Classic Support Solution database, contact Acrolinx Support.
[en] To connect the server to external terminology and reporting databases, configure the connection settings in the persistence.properties
. You can learn more in the following articles:
Anmerkung
[en] If the database servers live on the same host as the cluster and you previously called them localhost
, change localhost
to the host system’s host name. Learn more about this.
[en] Set Up Secure Communication
[en] It's best to only access the Acrolinx Platform with a secure connection. TLS is a security protocol for internet communications. This is part of Træfik, a reverse proxy and load balancer, and configured by our operator. If you want to configure TLS, you can add a certificate as a secret to Kubernetes in the acrolinx
namespace. Learn how in Secure End-user Communication with Acrolinx.
[en] Time Zone
[en] The default time zone is Coordinated Universal Time (UTC).
[en] It’s best to run the platform in UTC. If you need the Acrolinx Platform services to run in a specific time zone, you can specify the zoneinfo
entry in platform.spec.timeZone
. This will configure all containers to run in this time zone.
[en] For example, you’d configure a server running in Berlin local time like this:
spec: set: platform.spec.timeZone=Europe/Berlin