Skip to content

Commit 3a987f5

Browse files
authored
add documentation for using private registry (#360)
* add documentation for using private registry
1 parent 1624185 commit 3a987f5

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ uninstall: kustomize ## Uninstall CRDs from the K8s cluster specified in ~/.kube
124124
.PHONY: deploy
125125
deploy: kustomize ## Deploy controller to the K8s cluster specified in ~/.kube/config.
126126
cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG}
127+
cd config/default && $(KUSTOMIZE) edit set image kube-rbac-proxy=$(KRP_IMAGE_BASE):$(KRP_IMAGE_TAG)
127128
$(KUSTOMIZE) build config/default | kubectl apply -f -
128129

129130
.PHONY: undeploy

docs/manual-installation.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,23 @@ Alternatively, to create an SCC for NIC daemonsets, please run this command:
3939
You can now deploy the NGINX Ingress Controller instances.
4040

4141
**Note: If you're upgrading your operator installation to a later release, navigate [here](../helm-charts/nginx-ingress/) and run `kubectl apply -f crds/` or `oc apply -f crds/` as a prerequisite**
42+
43+
## Private Registry
44+
You can use the operator (including the kube-rbac-proxy) images from your own private registry.
45+
1. Tag the images for your private registry
46+
```shell
47+
docker tag quay.io/nginx/nginx-ingress-operator:2.3.1 <my-private-registry>/nginx-ingress-operator:2.3.1
48+
docker tag quay.io/brancz/kube-rbac-proxy:v0.18.0 <my-private-registry>/kube-rbac-proxy:v0.18.0
49+
```
50+
51+
2. Push the image to your private registry
52+
```shell
53+
docker push <my-private-registry>/nginx-ingress-operator:2.3.1
54+
docker push <my-private-registry>/kube-rbac-proxy:v0.18.0
55+
```
56+
57+
3. Follow step 1 above but in step 1.2 you can run
58+
```shell
59+
make deploy IMG=<my-private-registry>/nginx-ingress-operator:2.3.1 KRP_IMAGE_BASE=<my-private-registry>/kube-rbac-proxy
60+
```
61+
**Note: If you need to use a different `kube-rbac-proxy` version than the default, use the `KRP_IMAGE_TAG` variable**

0 commit comments

Comments
 (0)