
Bootstrap Token
A HumioBootstrapToken resource
provides the Humio Operator with an API token to authenticate with a
LogScale cluster. The bootstrap token is used to manage
LogScale configuration resources such as repositories, parsers,
and ingest tokens.
By default, the operator generates the token automatically by running a
one-time pod using the same container image as the
HumioCluster. You can override
the image used for this pod with the
bootstrapImage field.
Alternatively, provide an existing token by referencing a Kubernetes
secret in tokenSecret.secretKeyRef
or a pre-hashed token in
hashedTokenSecret.secretKeyRef.
When a token reference is provided, the operator skips the token
generation pod.
The following shows a minimal
HumioBootstrapToken that lets
the operator generate the token automatically.
apiVersion: core.humio.com/v1alpha1
kind: HumioBootstrapToken
metadata:
name: example-humiobootstraptoken
namespace: logging
spec:
managedClusterName: example-humiocluster
The following shows a
HumioBootstrapToken that uses an
existing token stored in a Kubernetes secret.
apiVersion: core.humio.com/v1alpha1
kind: HumioBootstrapToken
metadata:
name: example-humiobootstraptoken
namespace: logging
spec:
managedClusterName: example-humiocluster
tokenSecret:
secretKeyRef:
name: existing-token-secret
key: token
You can also set imagePullSecrets,
affinity,
tolerations, and
resources on the token generation
pod. These default to the values set on the
HumioCluster or first node pool if
managedClusterName is set.