-
Notifications
You must be signed in to change notification settings - Fork 10
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
zrok helm chart : configmap "ziti-controller-ctrl-plane-cas" not found #259
Comments
You're welcome! I'm glad you found it useful. You've stumbled upon a chart dependency that's less than obvious. I'll take this issue as a prompt to make it easier to figure out from the README. The zrok chart uses a ConfigMap you provide by name to configure itself to trust the OpenZiti controller's certificate. If you are self-hosting the OpenZiti controller in the same cluster, you can point the zrok charts values to the ConfigMap provided by the ziti-controller chart. It contains a bundle of root CA certs. If there's no ziti-controller release in the same cluster, you can compose a configmap that satisfies the zrok chart's requirement. Let me know if you'd prefer that approach, have a ziti-controller release with the trust bundle ConfigMap, or would prefer to bypass cert verification. |
e.g., if you DO have a ziti-controller release in your cluster named "myziti1" then the existing trust bundle ConfigMap is named "myziti1-ctrl-plane-cas" and is, by default, propagated to all K8S namespaces. helm upgrade --install --set ziti.ca_cert_configmap="myziti1-ctrl-plane-cas" If, perchance, you customized the ziti-controller value |
Thanks @qrkourier for your quick anwser ! OK I see, I overlooked the templates, I though zrok helm chart was a combination of "older" charts and include a controller instance. I understand now. I can deploy a ziti-controller in the same namespace. But by curiousity, how could I create this configMap without the controller generating it ? Thank you for mentioning the expected names, I will take a close look once the controller is deployed. Let me know if I can help providing feedback or repo files used for this "minimal" deployment. |
If your zrok is in a different cluster than the ziti-controller then you would need create a ConfigMap manifest. The data would have a key=value map where the key is the value of zrok chart input value The easiest way would be to copy the manifest from the ziti-controller's cluster to the cluster where zrok is installed, but you can fetch the root CA bundle from any Ziti controller like this. curl -sSk https://myziti.example.com/.well-known/est/cacerts \
| base64 -d \
| openssl pkcs7 -inform DER -outform PEM -print_certs Example ConfigMap manifest: apiVersion: v1
kind: ConfigMap
metadata:
name: ziti-controller-ctrl-plane-cas
namespace: myzrokns
data:
ctrl-plane-cas.crt: |
-----B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EAwDgYDVR0PAQH/BAQDAgGGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYE
FM/6PhcNpwHzlpjUmVRNE7NLMZPmMAoGCCqGSM49BAMCA0gAMEUCIDNzle8W60rm
ibQJq4uVGGImxkAu79HisLdUbKGpWrieAiEAyPJqLzLMLKyu1JqgYOVKWkhn2Ykg
ACyhgyfS9RoSJ6Y=
-----END CERTIFICATE----- |
Hi,
Thank you for your amazing work !
I am trying to deploy a self zrok instance using the zrok helm chart alone.
I explored the repo and found that there is no templates or scripts creating this configMap. Is the zrok helm chart not self-sufficient ?
The text was updated successfully, but these errors were encountered: