-
Notifications
You must be signed in to change notification settings - Fork 22
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
phase1 - Helm Chart #213
phase1 - Helm Chart #213
Conversation
…qutiy service, handle kubeconfig and certificates)
1. addressing UBIQUITY_IP_ADDRESS_VALUE by new param in value 2. Add new k8sconf configmap and new params for ip and token to align with this configmap 3. Refactor genericConfig (with lower case g) Next steps - test it, and then adding support for certificates
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 18 of 18 files at r1.
Reviewable status: complete! all files reviewed, all discussions resolved
…rom values 1. comment out ubiqutiy service (should be done as prerequisit) 2. k8s-config get from file (assume file exist in helm dir) 3. remove k8sconfg key from values.yaml This make ubiqtiy helm install to work in phase1 next step : address certificates injection
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NOTES.txt should be inside templates folder
helm_chart/ibm_storage_enabler_for_containers/templates/ubiquity-db-service.yml
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
This looks to be a good starting point for getting a working helm chart. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 6 of 7 files at r2.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @27149chen)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- I update the description of the PR with more details
- Just added also sslMode=verify-full support by using if statement in the helm charts for automatically add dedicated secrets if verify-full seted. So please if you can review it as well.
- Fixed the NOTES.txt file (per code review comment)
Reviewable status: 12 of 17 files reviewed, 2 unresolved discussions (waiting on @matt-levan and @27149chen)
helm_chart/ibm_storage_enabler_for_containers/values.yaml, line 26 at r2 (raw file):
Previously, 27149chen wrote…
instanceName is confusing, it is a prefix, what about something like "volumePrefix"?
I agree that instanceName is not self explanatory, and volumePrefix could be an alternative.
For now lets keep it instanceName, and raise this aspect in the design so we will talk about it.
I am not sure i want to change it to volumePrefix, because it may confuse inside the templates (which hard to change in order to keep backword compatibility).
But let talk about it offline.
helm_chart/ibm_storage_enabler_for_containers/templates/ubiquity-db-service.yml, line 5 at r2 (raw file):
Previously, 27149chen wrote…
There are some standard labels that recommended by helm, we'd better add them for every resource, see https://docs.helm.sh/chart_best_practices/#standard-labels
sure
please add relevant labels in later PRs as needed.
I believe you should add release + chart labels.
Thanks @matt-levan |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Successfully tested with IBM Cloud Private 3.1.0 and ubiquity images 1.2.0 by following the instructions associated with PR #213. |
Description
Provide a basic helm chart for ubiqutiy instead of the the original ubiquity_installer.sh script.
Its just the first step to word a fully function helm chart, so its just the phase1. This phase1 will have some limitations to operation - some manual operations needed to be done before install or uninstall.
Note: this PR description below was up to date, so it has the right instruction for ubiquity helm chart tech preview for v2.0.0.
helm chart tree
├── IBM_Spectrum_Connect_icon.png
└── ibm_storage_enabler_for_containers
├── charts
├── Chart.yaml
├── myvalues.yaml
├── README.md
├── templates
│ ├── NOTES.txt
│ ├── scbe-credentials-secret.yml
│ ├── spectrumscale-credentials-secret.yml
│ ├── storage-class-spectrumscale.yml
│ ├── storage-class.yml
│ ├── ubiquity-configmap.yml
│ ├── ubiquity-db-credentials-secret.yml
│ ├── ubiquity-db-deployment.yml
│ ├── ubiquity-db-pvc.yml
│ ├── ubiquity-db-service.yml
│ ├── ubiquity-deployment.yml
│ ├── ubiquity-k8s-flex-daemonset.yml
│ ├── ubiquity-k8s-provisioner-clusterrolebindings.yml
│ ├── ubiquity-k8s-provisioner-clusterroles.yml
│ ├── ubiquity-k8s-provisioner-deployment.yml
│ ├── ubiquity-k8s-provisioner-serviceaccount.yml
│ └── ubiquity-service.yml
└── values.yaml
Limitations for the phase1 helm chart:
values.yaml
This file is basically like the old ubiqutiy_installer.conf file, but with helm like standard and with better separation and canonization of the keys.
Here is how to use this phase1 ubiquity helm chart:
======================================
#On the master node do the following:
# Pre requisites before installation
# Installation phase:
#-----------------------------
# tear down:
#-------------------
#Because in helm phase1 there is no uninstall dependancies, then one should do the followign steps to uninstall ubiqutiy helm:
This change is