liangyuanpeng opened a new issue #6507: wrong k8s yaml config and env do not update URL: https://github.com/apache/pulsar/issues/6507 **Describe the bug** 1.env is not working 2. some ``apiVersion`` need update **To Reproduce** Steps to reproduce the behavior: 1. Go to ``pulsar/deployment/kubernetes/generic/k8s-1-9-and-above`` or ``pulsar/deployment/kubernetes/generic/origin`` 2. run ``kubectl apply -f .`` 3. run ``kubectl pods -w `` 4. See error: ``` bookie-tz5j7 0/1 CrashLoopBackOff 5 10m broker-7c85c49978-87g6h 0/1 CrashLoopBackOff 5 10m broker-7c85c49978-f7548 0/1 CrashLoopBackOff 5 10m broker-7c85c49978-l8xqt 0/1 CrashLoopBackOff 5 10m ``` container log : ``` 2020-03-07 08:51:57,034 [sun.misc.Launcher$AppClassLoader@18b4aac2] error Uncaught exception in thread main: Required zookeeperServers is null,Required clusterName is null ``` the reason is ``apply-config-from-env.py`` is not working : ``` # Update values from Env for k in sorted(os.environ.keys()): v = os.environ[k] if k in keys: print('[%s] Applying config %s = %s' % (conf_filename, k, v)) idx = keys[k] lines[idx] = '%s=%s\n' % (k, v) ``` should be replace ``PULSAR_PREFIX_`` to empty : ``` # Update values from Env for k in sorted(os.environ.keys()): v = os.environ[k] ************************************************************************ if k.startswith(PF_ENV_PREFIX): k = k[len(PF_ENV_PREFIX):] ************************************************************************ if k in keys: print('[%s] Applying config %s = %s' % (conf_filename, k, v)) idx = keys[k] lines[idx] = '%s=%s\n' % (k, v) ``` **Expected behavior** A clear and concise description of what you expected to happen. **Screenshots** If applicable, add screenshots to help explain your problem. **Desktop (please complete the following information):** - k8s version: 1.16.1 **Additional context** Add any other context about the problem here.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
