https://github.com/elixir-cloud-aai/pubgrade-sidecar
https://github.com/elixir-cloud-aai/pubgrade-sidecar
Last synced: 27 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/elixir-cloud-aai/pubgrade-sidecar
- Owner: elixir-cloud-aai
- Created: 2021-10-16T06:51:18.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-11-01T11:13:18.000Z (over 2 years ago)
- Last Synced: 2025-06-09T04:44:52.641Z (12 months ago)
- Language: Python
- Size: 45.9 KB
- Stars: 0
- Watchers: 29
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pubgrade-Sidecar
A microservice which would be co-deployed alongside [pubgrade][pubgrade] to
listen for update notifications from [pubgrade][pubgrade] and update the
subscribed service accordingly. The microservice is named as sidecar as it
would be co-deployed with the service of interest (service registered for
updates at pubgrade) in cloud native infrastructure at deployment side.
> **_NOTE:_** Project is still under development.
## Installation
1. Install and setup Kubernetes.
2. Install Helm.
3. Modify deployment/values.yaml.
4. Create a namespace, e.g., with kubectl create namespace production
5. Create a deployment using Helm with
`helm install pubgrade-sidecar deployment/ -n production`
## Usage
- Get available deployments in the namespace
```bash
curl --location --request GET 'http://{pubgrade_sidecar-url}/deployment'
```
- Get current image of the deployment.
```bash
curl --location --request GET 'http://{pubgrade_sidecar-url}/deployment/
{deployment-name}' \
--header 'X-Access-Token: {access-token (specified at config.yaml)}'
```
- Modify image tag of the deployment.
```bash
curl --location --request PUT 'http://{pubgrade_sidecar-url}/deployment/
{deployment-name}' \
--header 'X-Access-Token: {access-token (specified at config.yaml)}' \
--header 'Content-Type: application/json' \
--data-raw '{
"image_name": "akash7778/pubgrade",
"tag": "latest"
}'
```
[pubgrade]: