Unable to locate license and token secrets on Axon Server EE Pod startup

I have a pod that fails to startup.

kubectl describe axonserver-01 reveals an issue with locating two secrets

Warning FailedMount 25m (x4 over 25m) kubelet MountVolume.SetUp failed for volume “system-token” : secret “axonserver-token” not found
Warning FailedMount 25m (x5 over 25m) kubelet MountVolume.SetUp failed for volume “license” : secret “axoniq-license” not found

However, kubectl get secrets reveals both are available:

axoniq-license Opaque 1 20m
axonserver-token Opaque 1 25m

Hey Steven,
just to be sure about this: the secrets are created in the same namespace as the Axon Server instance? Kubernetes Secrets are stricter than e.g. ConfigMaps in their visibility across namespaces. For example, the “test-settings” secret below can only be mounted by Pods in the “devops” Namespace:

$ kubectl describe secret test-settings -n devops
Name:         test-settings
Namespace:    devops
Labels:       <none>
Annotations:  <none>

Type:  Opaque

Data
====
test-settings.properties:  7728 bytes

Bert Laverman

Thanks Bert.

Might have been a timing issue, but a simple restart of things and the secrets are discovered.

1 Like