Skip to content

Commit 5982f32

Browse files
committed
Add private registry information
1 parent 932da8c commit 5982f32

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
@@ -25,6 +25,7 @@ Go Server/API boilerplate using best practices, DDD, CQRS, ES, gRPC.
2525
- [Build release](#build-release)
2626
- [Local image](#local-image)
2727
- [GitHub Package Registry](#github-package-registry)
28+
- [Private Registry](#private-registry)
2829
- [Install Cert Manager](#install-cert-manager)
2930
- [Deploy release](#build-release)
3031
- [Dashboard](#dashboard)
@@ -132,6 +133,19 @@ Replace image details in [values.yaml](helm/app/values.yaml)
132133
pullPolicy: IfNotPresent
133134
```
134135
repeat for all services and `migrate` init containers.
136+
#### Private Registry
137+
If you want your k8sto [Pull an Image from a Private Registry](https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/) on your k8 machine login to docker:
138+
```sh
139+
docker login
140+
```
141+
Then create a secret in `go-api-boilerplate` namespace as follows:
142+
```sh
143+
kubectl create secret generic regcred --from-file=.dockerconfigjson=.docker/config.json --type=kubernetes.io/dockerconfigjson --namespace=go-api-boilerplate
144+
```
145+
Set `imagePullSecrets` in your [values.yaml](helm/app/values.yaml) file (simply look for all occurrences and uncomment).
146+
```diff
147+
+ imagePullSecrets: regcred
148+
```
135149
### Install [Cert Manager](https://github.com/vardius/go-api-boilerplate/wiki/3.3.-Cert-manager)
136150
```sh
137151
helm repo add jetstack https://charts.jetstack.io

0 commit comments

Comments
 (0)