-
Notifications
You must be signed in to change notification settings - Fork 17
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
k8s: Use configmap
for API deployment
#324
Conversation
configmap
for API deploymentconfigmap
for API deployment
configmap
for API deploymentconfigmap
for API deployment
Renamed script |
@nuclearcat @sbdtu5498 Hello, could you please take a look and review this PR? |
Everything seems fine to me. Just a small nit. @JenySadadia if we can change the name of clean-all.sh to tear.sh. It sounds more resonating with deploy.sh. |
kube/minkube/README.md
Outdated
@@ -137,15 +137,15 @@ kubectly apply -f api-deployment.yaml | |||
|
|||
## Cleaning up everything afterwards | |||
|
|||
To clean up everything simply use the ```clean-all.sh``` script provided in the root of the kube/minikube/hack folder by running | |||
To clean up everything simply use the ```clean-all.sh``` script provided in the root of the kube/minikube/scripts folder by running |
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.
@JenySadadia how about calling clean-all.sh tear.sh instead.
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.
delete-resources.sh
looks more suitable to me.
I guess its need rebase now, as minkube changed to minikube |
Fix a typo in a command to run `api` deployment. Fixes Signed-off-by: Jeny Sadadia <[email protected]>
Use `ConfigMap` to provide configuration for redis host and DB service URL. Add a manifest file to generate `configmap` named `kernelci-api-config`. API deployment will reference `REDIS_HOST` and `MONGO_SERVICE` from the configmap. Signed-off-by: Jeny Sadadia <[email protected]>
Reference configmap `kernelci-api-config` to get environment variables for redis hostname and DB service URL. Signed-off-by: Jeny Sadadia <[email protected]>
Add `kubectl` command to generate `ConfigMap` for API deployment. Signed-off-by: Jeny Sadadia <[email protected]>
edffc54
to
ec0a01b
Compare
Rebased it. |
Rename directory name containing scripts to automate deployment from `hack` to `scripts`. Update `README.md` accordingly. Signed-off-by: Jeny Sadadia <[email protected]>
Rename script from `apply-all.sh` to `deploy.sh`. The script can be used to automate API deployment in k8s. Signed-off-by: Jeny Sadadia <[email protected]>
ec0a01b
to
ca87e47
Compare
Kubernetes provides
ConfigMap
mechanism used to configure pods efficiently.Use
ConfigMap
for providing environment variables to API deployment.Instead of adding environment variable values for Redis hostname and Mongo DB URL directly into
api
deployment file, referenceConfigMap
to read values.configmap
api
deployment file to reference configmap variableshack
toscripts
scripts/apply-all.sh