[Discussing] Workaround to deploy on kubernetes with plugins#1087
[Discussing] Workaround to deploy on kubernetes with plugins#1087pnck wants to merge 1 commit intoshadowsocks:masterfrom
Conversation
|
let me introduce some basic conceptions. k8s' workload unit is called a in this ss server case instead, we want the plugins had been injected into the ssserver container before it's serving. there is no need (and should not) to make a multi-container pod, because that will isolate plugins from the main the problem we are facing is, the original specified mounting path so here is the simplest solution that changes the mounting path to
but in fact, the k8s deployment is still far from available. the ss container only serves connections from inside the cluster (or on the node machine) at the moment. i'm still doing experiments on it. |
|
Make sense. |
Reference issue: #978
SS pod cannot get started due to the mounting point at
/usr/local/bin. K8s' mount mechanism works different from docker's, which would overwrite the underlying files instead of keeping them togetherr. (There is no overlay filesystem.)So the solution is either mount plugin volumes into another path, or modify the docker image to ensure that
ssserverat a place that won't get overwritten.This draft shows a workaround to download and serve with plugins.
Besides the
test-connectionpart is suggested removal because this pod will always be ready before the main pod, thusfails invariably and making no sense.