Hi guys, We try to pregenerate kubernetes manifest...
# gooddata-cn
t
Hi guys, We try to pregenerate kubernetes manifest via
helm template
command but it generates all objects into no namespace, hence the default ns is used:
Copy code
helm template gooddata-cn gooddata/gooddata-cn --namespace gooddata-cn -f customized-values-gooddata-cn.yaml --version 1.7.2
If we don’t supply values.yaml to the command it will then generate k8 objects into proper namespace (gooddata-cn).
Copy code
helm template gooddata-cn gooddata/gooddata-cn --namespace gooddata-cn  --version 1.7.2
Maybe it is problem in helm or am I completely missing out something?
✔️ 1
r
You're right, our helm charts do not add
namespace
metadata into rendered templates. If you run
helm install -n namespace
, it will deploy to a proper namespace. If you want apply rendered manifests, you'll need to specify namepsace on command line (
kubectl -n namespace apply -f helm-template-output.yaml
)
👍 1
t
ok, so we’ll go the “kubectl -n namespace” way. thanks!