Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Use helm with template
Use values.yaml
Edit the file in
templatefolder, useValuesvariables and put the actual values invalues.yaml.Upgrade the deployment.
After each upgrade, the revision number should be incremented.
Add notes
Create file
NOTES.txtunderdeployment/templatesdirectory with the following content.servicename=$(k get service -l "app={{ .Values.appName }}" -o jsonpath="{.items[0].metadata.name}") kubectl --namespace {{ .Values.namespace}} port-forward service/{{ .Values.appName }} 8888:80Each time when you run the upgrade command, you will see the notes in the output.
Copy and paste the two lines and execute them in teminal.
servicename=$(k get service -l "app=compare-helm" -o jsonpath="{.items[0].metadata.name}") kubectl --namespace default port-forward service/compare-helm 8888:80Then, you are able to access your site through
http://localhost:8888/.