Skip to content

Commit

Permalink
chore: improved readme (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
hassnatahmad authored Aug 8, 2024
1 parent 106e916 commit 454a264
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
# k8s-deployment-restarter
# kubernetes-deployment-restarter-api

## Requirements

docker
python > 3.10
Docker
Python > 3.10
kubectl

## Local setup

### create a python virtual environement
### Create a python virtual environment

```bash
python -m venv venv
activate ven `source venv/bin/activate
activate venv `source venv/bin/activate
pip install -r requirements.txt
```

#### To run locally

```bash
export KUBECONFIG="/Users/hassnat/.kube/config"
export KUBECONFIG="~/.kube/config"
export API_KEY="secret"
python main.py
```
Expand All @@ -37,7 +37,7 @@ python main.py
curl -X 'GET' 'http://localhost:8080/restart-deployment/YourNAMESPACE_NAME/YourDEPLOYMENT_NAME?api_key=YourAPIKEY'
```

### or open in browser
### or open in the browser

```bash
http://localhost:8080/restart-deployment/YourNAMESPACE_NAME/YourDEPLOYMENT_NAME?api_key=YourAPIKEY
Expand Down

0 comments on commit 454a264

Please sign in to comment.