Skip to content
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

Add support to pass and parse config #3

Merged
merged 2 commits into from
Feb 17, 2021
Merged

Add support to pass and parse config #3

merged 2 commits into from
Feb 17, 2021

Conversation

PrasadG193
Copy link
Member

Add support to pass app details through the config files

Example:

$ kbrew search --config testdata/mysql-config.yaml mysql                                                                                                                       
NAME  VERSION TYPE                                                                                       
mysql 8.3.1   helm                                                                                                                                                                                                 

$ kbrew install --config testdata/mysql-config.yaml mysql --namespace mysql
NAME: mysql                                   
LAST DEPLOYED: Wed Feb 17 09:40:17 2021            
NAMESPACE: mysql                                                                                         
STATUS: deployed                                                                                         
REVISION: 1                                                                                              
TEST SUITE: None                                                                                         
NOTES:                                                                                                   
** Please be patient while the chart is being deployed **
                                                                                                         
Tip:                                                                                                     
                                                    
  Watch the deployment status using the command: kubectl get pods -w --namespace mysql                   
                                                                                                         
Services:                                                                                                
                                                    
  echo Primary: mysql.mysql.svc.cluster.local:3306                                                       
                                                    
Administrator credentials:                                                                               
                                                    
  echo Username: root                                                                                    
  echo Password : $(kubectl get secret --namespace mysql mysql -o jsonpath="{.data.mysql-root-password}" | base64 --decode)
                                                                                                                                                                                                                   
To connect to your database:                     
                                                    
  1. Run a pod that you can use as a client:                                                             
                                                    
      kubectl run mysql-client --rm --tty -i --restart='Never' --image  docker.io/bitnami/mysql:8.0.23-debian-10-r0 --namespace mysql --command -- bash

  2. To connect to primary service (read/write):

      mysql -h mysql.mysql.svc.cluster.local -uroot -p my_database

To upgrade this helm chart:

  1. Obtain the password as described on the 'Administrator credentials' section and set the 'root.password' parameter as shown below:

      ROOT_PASSWORD=$(kubectl get secret --namespace mysql mysql} -o jsonpath="{.data.mysql-root-password}" | base64 --decode)
      helm upgrade mysql bitnami/mysql --set auth.rootPassword=$ROOT_PASSWORD

Signed-off-by: Prasad Ghangal <[email protected]>
@vishal-biyani vishal-biyani merged commit 343a239 into main Feb 17, 2021
@vishal-biyani vishal-biyani deleted the config-support branch February 17, 2021 07:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants