adamant-kite-43734
09/30/2024, 4:01 PMbillions-vase-14972
09/30/2024, 4:03 PM./tmp/
directory are just duplicates of the other directories that were created when running the publish-pkgs script. So everything within that directory including the assets
, charts
, extensions
, and index.yaml
are necessary.gifted-breakfast-73755
09/30/2024, 4:07 PM./tmp/assets/<my-extension-name>/<my-extension-name>-<version>.tgz
or ./assets/<my-extension-name>/<my-extension-name>-<version>.tgz
and then I can delete all the files/dirs that publish-pkgs
created?billions-vase-14972
09/30/2024, 4:09 PMgifted-breakfast-73755
09/30/2024, 4:10 PMgifted-breakfast-73755
09/30/2024, 4:13 PMhelm cm-push ./tmp my-harbor-helm-repo
gifted-breakfast-73755
09/30/2024, 4:34 PMspec.plugin.endpoint
in the generated cr.yaml
file references the extensions
directory on the github repo so does that mean this all needs to be committed to the git repo that implements the extension or is there a way to publish all the generated code to a separate helm repo?gifted-breakfast-73755
09/30/2024, 4:36 PMNote: Currently, we only support publishing Extension Helm charts into a public Github repository, if you inted to deploy an extension from a private repository/registry, we recommend utilizing the Extension Catalog Image method.So I'll take a look at using an ECI instead...
gifted-breakfast-73755
09/30/2024, 4:39 PMgifted-breakfast-73755
09/30/2024, 4:44 PMbillions-vase-14972
09/30/2024, 4:59 PMspec.plugin.endpoint
needs to be accessible from your cluster.
Also the endpoint is determined by the options provided to the publish-pkgs
command.
There are alternatives to docker, I don't think it's documented (yet) but there is the ability to use podman to build the ECI. You could emulate the gitlab workflow to accomplish that. The main difference is passing the option l
into the publish-pkgs script.gifted-breakfast-73755
09/30/2024, 5:09 PM.tgz
file but you're saying the files in the packaged .tgz
file reference files outside of it, so I can't just publish it like an ordinary helm chart?billions-vase-14972
09/30/2024, 5:15 PM.tgz
is not enough.
The chart just supplies a simple way to create a uiplugin
resource, which the Rancher backend will then use the metadata available from the packaged chart to fetch the necessary files in order to load the extension. These files are key. It would probably be possible to store those files elsewhere and publish a chart on it's own, as long as the endpoint is referencing where those files are stored - but that would take some manual effort on your owngifted-breakfast-73755
09/30/2024, 5:17 PMgifted-breakfast-73755
09/30/2024, 5:18 PMbillions-vase-14972
09/30/2024, 5:18 PMgifted-breakfast-73755
09/30/2024, 5:21 PMbillions-vase-14972
09/30/2024, 5:21 PMgifted-breakfast-73755
09/30/2024, 5:23 PMbillions-vase-14972
09/30/2024, 5:24 PMgifted-breakfast-73755
09/30/2024, 5:50 PMgifted-breakfast-73755
09/30/2024, 5:50 PM.tgz
?billions-vase-14972
09/30/2024, 5:59 PMgifted-breakfast-73755
09/30/2024, 6:03 PMbillions-vase-14972
09/30/2024, 6:05 PMgifted-breakfast-73755
09/30/2024, 6:10 PMbillions-vase-14972
09/30/2024, 6:12 PMui-driver-skel
repository is setup for ember and will not work with the current dashboard for RKE2.gifted-breakfast-73755
09/30/2024, 6:13 PMgifted-breakfast-73755
09/30/2024, 6:14 PMbillions-vase-14972
09/30/2024, 6:15 PMgifted-breakfast-73755
09/30/2024, 6:16 PMbillions-vase-14972
09/30/2024, 6:17 PMv2.9.2
is the latest stable versiongifted-breakfast-73755
09/30/2024, 6:28 PMmachine-config
for a custom node driver, does Rancher create the related machineconfig resoures in the API at the time of installing the extension?gifted-breakfast-73755
09/30/2024, 6:29 PMmachine-config
get created up front when installing the extension and everything after that is only related to the UI rendered if creating a cluster graphically?billions-vase-14972
09/30/2024, 6:36 PMgifted-breakfast-73755
09/30/2024, 6:37 PMgifted-breakfast-73755
09/30/2024, 6:53 PMbillions-vase-14972
09/30/2024, 6:57 PMgifted-breakfast-73755
09/30/2024, 6:57 PMExplore
next to the local
cluster and go to the Apps > Repositories
section I only see options for adding a helm repo...gifted-breakfast-73755
09/30/2024, 6:57 PMgifted-breakfast-73755
09/30/2024, 7:15 PM2024/09/30 19:14:36 [ERROR] error syncing 'rancher-extension-triton-charts': handler helm-clusterrepo-download: Get "<http://10.43.108.163:8080/index.yaml>": dial tcp 10.43.108.163:8080: connect: connection refused, requeuing
gifted-breakfast-73755
09/30/2024, 7:15 PM<http://harbor.vrcis.com/rancher/rancher-extension-triton:0.1.0|harbor.vrcis.com/rancher/rancher-extension-triton:0.1.0>
which I can successfully docker pull <http://harbor.vrcis.com/rancher/rancher-extension-triton:0.1.0|harbor.vrcis.com/rancher/rancher-extension-triton:0.1.0>
locally without issue and it's a public repogifted-breakfast-73755
09/30/2024, 7:16 PM10.43.108.163
and what that isgifted-breakfast-73755
09/30/2024, 7:22 PMgifted-breakfast-73755
09/30/2024, 7:51 PM2024/09/30 19:50:02 [ERROR] error syncing 'ui-plugin-catalog-repo': handler helm-clusterrepo-download: Get "<http://ui-plugin-catalog-svc.cattle-ui-plugin-system:8080/index.yaml>": dial tcp: lookup ui-plugin-catalog-svc.cattle-ui-plugin-system on 10.10.50.158:53: no such host, requeuing
gifted-breakfast-73755
09/30/2024, 7:54 PMui-plugin-catalog-svc.cattle-ui-plugin-system
but that should be resolved by the local cluster DNS, right?billions-vase-14972
10/01/2024, 12:36 PM10.43.108.163
is the ClusterIP, we ended up targeting that due to the docker version of Rancher having issues with the kube-dns lookup. It should be able to resolve the service correctly, but it's likely the deployment the service is targeting is failing.
I tried importing the ECI in my cluster, the deployment that is created with the <http://harbor.vrcis.com/rancher/rancher-extension-triton:0.1.0|harbor.vrcis.com/rancher/rancher-extension-triton:0.1.0>
image is on a crashloopbackoff with the error
exec /usr/sbin/nginx: exec format error
I don't know why this nginx container is failing to load. Would you be able to link the repo/build here? You can DM me if need be.gifted-breakfast-73755
10/01/2024, 6:10 PMgifted-breakfast-73755
10/01/2024, 6:47 PMe4194ad3a5bf:/var/lib/rancher # kubectl -n cattle-ui-plugin-system logs deploy/rancher-extension-triton
exec /usr/sbin/nginx: exec format error