You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 7, 2023. It is now read-only.
When official Consul docker image is started on Kubernetes without mounted volume, it fails with either su-exec: setgroups(1000): Operation not permitted or failed to write NodeID to disk error.
Reproduction Steps
Steps for Openshift, steps for K8s should be similar:
Similar error was previously described several times: [1](suggested solution is to use custom Docker image), [2](added CONSUL_DISABLE_PERM_MGMT environment property, not helpful in this case, see "Alternative solution" section and [3] (recommended solution is to check "mount parameters"), but current solution requires volume mounting, which would be overkill in some cases(e.g/ training or integration testing). Usage of bitnami/consul image can be considered a workaround, but it comes with its own challenges[4] so it is preferable to have this issue solved for the official image.
Overview of the Issue
When official Consul docker image is started on Kubernetes without mounted volume, it fails with either
su-exec: setgroups(1000): Operation not permitted
orfailed to write NodeID to disk
error.Reproduction Steps
Steps for Openshift, steps for K8s should be similar:
oc new-project ts-consul
oc apply -f consul.yml -n ts-consul
oc scale dc/consul --replicas=1 -n ts-consul
oc status -n ts-consul
oc logs pod/consul-1-8lmhh
(replace with the id of your pod)Alternative solution
We can follow the solution, implemented in #103 and add
CONSUL_DISABLE_PERM_MGMT
property. Unfortunately, this will just lead to a different error:Operating system and Environment details
OS:
Linux 5.16.20-200.fc35.x86_64
OpenShift:
Additional info
Similar error was previously described several times: [1](suggested solution is to use custom Docker image), [2](added
CONSUL_DISABLE_PERM_MGMT
environment property, not helpful in this case, see "Alternative solution" section and [3] (recommended solution is to check "mount parameters"), but current solution requires volume mounting, which would be overkill in some cases(e.g/ training or integration testing). Usage ofbitnami/consul
image can be considered a workaround, but it comes with its own challenges[4] so it is preferable to have this issue solved for the official image.[1] hashicorp/consul#4172
[2] #103
[3] hashicorp/consul#10403
[4] bitnami-labs/sealed-secrets#822
The text was updated successfully, but these errors were encountered: