Skip to content

Commit cfa3815

Browse files
authored
Add instructions for k8s deployment
1 parent 1b1c91e commit cfa3815

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,33 @@ function getAuthorizedUser(req: Request, header: string = 'Authorization') {
106106
}
107107
```
108108

109+
## Installation on Kubernetes
110+
111+
There is no official chart for this project, helm or otherwise. You can make your own, but keep in mind cors-proxy uses the Micro server, which will return a 403 error for any requests that do not have the user agent header.
112+
113+
_Example:_
114+
```yaml
115+
containers:
116+
- command:
117+
- npx
118+
args:
119+
- '@isomorphic-git/cors-proxy'
120+
- start
121+
image: node:lts-alpine
122+
name: cors-proxy
123+
ports:
124+
- containerPort: 9999
125+
hostPort: 9999
126+
name: proxy
127+
protocol: TCP
128+
livenessProbe:
129+
tcpSocket:
130+
port: proxy
131+
readinessProbe:
132+
tcpSocket:
133+
port: proxy
134+
```
135+
109136
## License
110137
111138
This work is released under [The MIT License](https://opensource.org/licenses/MIT)

0 commit comments

Comments
 (0)