Provide scripts to create the GCP Marketplace installation for Seldon Core.
To update the market place for a new release of Seldon Core.
- Update the chart and test
- Update the images in the release project
- Inform google of update via control panel and email
Estimated time: 1-2 hours.
Update the Makefile to fetch the latest helm chart by changing the CHART_VERSION
TAG ?= 1.7
CHART_VERSION ?= 1.7.0
PULL_TAG ?= 1.7.0
For GCP if there is a change in TAG (i.e. not a semver bugfix update 1.2.1 -> 1.2.3) then this will be a new TAG in GCP as opposed to an update to an existing TAG.
Run
make update-chart
This will
- Download and extract chart
- Update the chart values to set some settings needed via
/scripts/update_helm_chart.py
- No rbac create
- Manager must create resources including CRD
- Create a template from the chart with rbac set to true
- Try to extract the Role and ClusterRole from the template and update the schema.yaml to ensure the deployed app gets the correct RBAC. Google does not allow a helm chart to create RBAC itself. This is done via
/scripts/update_schema.py
- cp the application.yaml into the chart.
Some issue that might happen:
- RBAC is not been excluded or extracted correctly
- Chart values have changed
Next build all the images. For this you will need:
- A kubernetes cluster connected with kubectl access
- An active GCP project, e.g.
- We use the
klaw-project
project by default - Make sure you are authenticated (
gcloud auth login
) - You can set it with
gcloud config set project seldon-demos
- You can check its set with
gcloud config get-value project
- We use the
Change the PULL_TAG and TAG setttings for the new release:
- PULL_TAG - the tag to pull seldon images
- TAG - the tag for the GCP release
Run
Update licenses see here.
make build_all push_all
Create a GKE cluster.
Install application CRD
make install-application-crd
To test the deployer succeeds run
make deploy
To remove the artifacts run
make undeploy
To deploy and verify via creating a model as described in apptest chart run
make verify
Update licenses by following license README
Make sure the spreadsheets are updated:
Build and push images to the staging project
gcloud config configurations activate seldon-core-public
Build and push all images again. They will be built and tag with the new project repo and pushed.
make build_all push_all
Go to portal to update the version.
May also need to send email to [email protected]