values.yaml, and configure SUNK for several common directory service providers.
Set up a Kubernetes Secret
Before configuring SUNK to use a directory service, you must create a Kubernetes Secret that stores the bind credentials SUNK uses to query your directory.Google Secure LDAP users should skip this step and follow the instructions in that section to create the Secret using a TLS certificate instead.
Create a Kubernetes Secret
First, create a Kubernetes Secret that contains the configuration for your directory service. The Secret must meet the following criteria:- The key name in the Secret must end with
.conf. - The Secret’s data should include a full and correct SSSD configuration snippet. This snippet must include the domain and
ldap_default_authtokparameter. This is not a user password.
[CREDENTIALS] with the actual credentials for your directory service.
In this example, the name of the Secret is bind-user-sssd-config.
The example also adds a secret key with the ldap-password.conf parameter and inserts the SSSD configuration snippet within.
Reference the Secret in values.yaml
Next, update Slurm’s values.yaml file to reference the Secret you just created.
Add the name of your Secret to the existingSecret field.
Add the secret key to the existingSecretFileName field.
Ensure that the values in these fields match your created Secret exactly.
The following example uses the Secret name and secret key created in the previous step:
Create a Secret for Google Secure LDAP
Google Secure LDAP requires a TLS certificate instead of a bind password, so the Secret takes a different form than the SSSD configuration Secret described in the previous section. If you want to use Google Secure LDAP, follow Google’s instructions to add a new LDAP client. As part of the setup, you generate certificates and download them. Then, create a Kubernetes Secret of typetls using the certificate files you downloaded:
[YOUR-CERTIFICATE].crt and [YOUR-PRIVATE-KEY].key with your downloaded certificate and key.
Modify values.yaml to include the Google Secure LDAP configuration in the directoryService section:
Optional: Enable SSH with Google Secure LDAP
To let users sign in using an SSH key, add a multi-value attribute to your Google directory. Follow the Google guide to create a custom attribute namedsshPublicKey.
For each user, enter their SSH public key into the sshPublicKey attribute field.
Google’s custom attribute values have a 500-character limit, so use a shorter key type like
ssh-ed25519.Configuration examples
The following examples showdirectoryService configuration snippets for common directory service providers. Use them as a starting point and adjust the values to match your environment.
Active Directory
OpenLDAP
Authentik
General directory service configuration
The following sections list the configuration keys available in thedirectoryService section of values.yaml, with links to the full parameter reference.
For general configuration, see these keys in the directoryService section of values.yaml.
Directory service-specific configuration
Each named directory service has its own configuration section. See these keys in thedirectoryService.directories[*] section of values.yaml.