-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chown: /consul/config: Read-only file system #28
Comments
You have to change mount path from |
@lsgrep good one, thanks it worked for me as well. I am using k8s 1.8.10. |
@dinar-dalvi @lsgrep Can you guys be more explicit on the change that was done in the yaml file? I don't fully understand where precisely is the change |
@mgyong I just ran into the same issue. Look at the statefulset/consul.yaml file at the volumeMounts.
Don't forget to update the config-file args in the same file:
Hope that helps. |
@martwetzels It works now. Thks. I forgot to update the config-file args in the same file |
to anyone getting stuck with this, you don't have to use a config map since 1.8.9 the option to readwrite from configmap is disabled unless you configure the kubelet like so
this is not going to work if you already in a failed state. now for the fix: you need to remove the config map volume mount but do not remove the config-file flag from the yaml step 1: add the config as json string to the nev var CONSUL_LOCAL_CONFIG env:
- name: CONSUL_LOCAL_CONFIG
value: '{
"ca_file": "/etc/tls/ca.pem",
"cert_file": "/etc/tls/consul.pem",
"key_file": "/etc/tls/consul-key.pem",
"verify_incoming": true,
"verify_outgoing": true,
"verify_server_hostname": true,
"ports": {
"https": 8443
}
}' step 2 point to the generated file: now docker entry point will auto create a file under this instructs consul to get its config from an env var instead of a file where the docker image will attempt to chown the config for the console user. |
Fixed on master. |
I'm getting this when I try to start the statefulset
I didn't see any other issue here so I'm assuming I did something really wrong,
but
/consul/config
is the mount point for the configmap, so it makes sense that it's read only I guess.The text was updated successfully, but these errors were encountered: