-
Notifications
You must be signed in to change notification settings - Fork 448
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
Refactor Kustomize manifests for Katib #1464
Refactor Kustomize manifests for Katib #1464
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: andreyvelich The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
I changed docs in the Katib repo. |
@DomFleischmann @knkski @RFMVasconcelos I disabled GitHub actions at this PR, since we should fix: #1453 and add cert-generator to the manifests. |
I also updated tags for the Trial images to |
@andreyvelich to explore the diff, I built:
I'm uploading the old and new yaml, for completeness: The main diff I saw is:
apiVersion: v1
kind: PersistentVolume
metadata:
labels:
app.kubernetes.io/component: katib
type: local
name: katib-mysql
spec:
accessModes:
- ReadWriteOnce
capacity:
storage: 10Gi
hostPath:
path: /tmp/katib
storageClassName: katib I don't think it's right to include a PersistentVolume, as it ties Katib installation to a particular type of storage (hostPath). It also presumes the existence of the Katib storageclass. By including just a PersistentVolumeClaim, we make storage pluggable. It's standard to include a PVC (not a PV) in other manifests as well. What do you think? |
Thank you for the review @yanniszark!
I think in the next release (~ Katib 0.11.1 or Katib 0.12 ) we can make it optional. We should have a discussion how we can do it (cert-manager overlay for instance).
We can exclude this PV from the Kubeflow installation. If users know that cluster Storage Class can properly provision volume, they can always modify the kustomization file. WDYT @yanniszark ? cc @gaocegege @johnugeorge |
Thanks for including the related issues for context! I agree that it's good to try and make users' life easier. Since creating the PV is essentially an environment setup step (and may have security implications because it's using a hostPath volume, thus having side-effects on the host machine), I would include it in a separate manifest and add an optional step to install it. For this PR, excluding it in the Kubeflow overlay seems ok. I'd like to open the discussion in the future if you agree! |
Sure, it makes sense. Let's keep for the Kubeflow 1.3 release as it was before (Katib installation - PV is included, Kubeflow installation - PV is excluded). I will create an issue and we can discuss how we want to manager it in the further release. |
@yanniszark Also what do you think about this patch: katib/manifests/v1beta1/installs/katib-with-kubeflow/kustomization.yaml Lines 49 to 111 in 585c01d
Does it sound good for you ? |
Yes, unfortunately you need to patch the whole ConfigMap :/ |
I believe @yanniszark If you are fine with other changes, please can you give your |
/retest |
/lgtm |
/retest |
@yanniszark I was actually thinking about the patch more. Thus, we can use re-use patch for the Katib config and simplify kustomization files. |
Add image versions to katib-external-db install
New changes are detected. LGTM label has been removed. |
8c82457
to
d07893e
Compare
/retest |
I refactored Kustomize manifest for Katib.
I followed this approach:
/components
./installs
.User can select required install Kustomize file, e.g. Katib standalone, Kubeflow, IBM, etc..
User also are able to use pure
kubectl
to deploy Katib, we can extenddeploy.sh
script for that later.We can keep the
latest
tag for the Katib standalone installation and we can add Katib 0.11 tag for the Kubeflow Katib installation.For the Katib config I added
patchesStrategicMerge
to the Kustomize file. I am not sure if it is possible to modify image tags in the other way.For the Kubeflow installation I added:
I left only 1 application with this label for the Katib component.
Please take a look @yanniszark.
I am still updating some docs in this PR.
/cc @gaocegege @johnugeorge