Skip to content

Commit 53c8bd9

Browse files
authored
Merge pull request #801 from Bregor/features/cni/registry-proxy
Enable registry-proxy for CNI users
2 parents 80618ff + c478cd1 commit 53c8bd9

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

charts/workflow/values.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,16 @@ global:
5757
# - true: deis-router will not be deployed. Workflow will not be usable until a Kubernetes ingress controller is installed.
5858
# - false: deis-router will be deployed (default).
5959
experimental_native_ingress: false
60+
# If the Kubernetes cluster uses CNI
61+
# use_cni: true
62+
# Set the `listen` variable for registry-proxy's NGINX
63+
#
64+
# Valid values are:
65+
# - 80: If the Kubernetes cluster run on GKE or AWS, or uses flannel or kubenet as a pod network
66+
# - 127.0.0.1:5555: If the Kubernetes cluster uses CNI
67+
#
68+
# In case of CNI you can not use `hostPort` notation due to https://github.com/kubernetes/kubernetes/issues/23920
69+
# registry_proxy_bind_addr: "80"
6070

6171

6272
s3:

src/managing-workflow/production-deployments.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ any deployed applications. To reduce the potential of this happening it is recom
6161
deis-router Deployment to run more than one router pod. This can be accomplished by running
6262
`kubectl --namespace=deis scale --replicas=2 deployment/deis-router`
6363

64+
## Using on-cluster registry with CNI
65+
If you are using [CNI](https://github.com/containernetworking/cni) for managing container network, you cannot use `hostPort` notation due to [this issue](https://github.com/kubernetes/kubernetes/issues/23920).
66+
In this case you could enable CNI for `deis-registry-proxy` by setting `use_cni` variable to `true` inside `values.yaml` or by adding `--set global.use_cni=true` to `helm`'s args.
67+
6468
[configuring object storage]: ../installing-workflow/configuring-object-storage.md
6569
[customizing controller]: tuning-component-settings.md#customizing-the-controller
6670
[customizing monitor]: tuning-component-settings.md#customizing-the-monitor

0 commit comments

Comments
 (0)