Skip to content

Commit 6955b3d

Browse files
Merge pull request #14 from davidkarlsen/k8s
add install instructions for k8s
2 parents 6716810 + 1bf3a3a commit 6955b3d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,26 @@ docker run -d --name docker-registry-proxy --net=host \
5353
If you ran this command on "registry-proxy.example.com" you can now get your images using `docker pull registry-proxy.example.com:5000/repo/image`.
5454

5555
### Deploying the proxy
56+
57+
#### Deploying with ansible
58+
5659
Modify the ansible role [variables](https://github.com/eSailors/aws-ecr-http-proxy/tree/master/roles/docker-registry-proxy/defaults) according to your need and run the playbook as follow:
5760
```sh
5861
ansible-playbook -i hosts playbook-docker-registry-proxy.yaml
5962
```
6063
In case you want to enable SSL/TLS please replace the SSL certificates with the valid ones in [roles/docker-registry-proxy/files/*.pem](https://github.com/eSailors/aws-ecr-http-proxy/tree/master/roles/docker-registry-proxy/files)
6164

65+
#### Deploying on Kubernetes with Helm
66+
You can install on Kubernetes using the [community-maintained chart](https://github.com/evryfs/helm-charts/tree/master/charts/ecr-proxy) like this:
67+
68+
```shell
69+
helm repo add evryfs-oss https://evryfs.github.io/helm-charts/
70+
helm install evryfs-oss/ecr-proxy --name ecr-proxy --namespace ecr-proxy
71+
```
72+
73+
See the [values-file](https://github.com/evryfs/helm-charts/blob/master/charts/ecr-proxy/values.yaml) for configuration parameters.
74+
75+
6276
### Note on SSL/TLS
6377
The proxy is using `HTTP` (plain text) as default protocol for now. So in order to avoid docker client complaining either:
6478
- (**Recommended**) Enable SSL/TLS using `ENABLE_SSL` configuration. For that you will have to mount your **valid** certificate/key in the container and pass the paths using `REGISTRY_HTTP_TLS_*` variables.

0 commit comments

Comments
 (0)