Skip to content
This repository has been archived by the owner on Apr 10, 2024. It is now read-only.

Commit

Permalink
fix: different names for imagepullsecret (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
Marek Anderson authored Dec 5, 2020
1 parent ddfa08a commit bdf0891
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions deploy-example/README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
## deploy-example
# deploy-example

Here is an example deployment to a kubernetes cluster.

Remember to change the Secret is specified in [2_deployment.yaml](kubernetes-manifest/2_deployment.yaml#L8). It's a base64-encoded json string which has credentials to the private registries.

To manually create such secret can follow https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/#create-a-secret-by-providing-credentials-on-the-command-line.

```
kubectl create secret docker-registry image-pull-secret \
```shell
kubectl create secret docker-registry image-pull-secret-src \
-n imagepullsecret-patcher \
--docker-server=<your-registry-server> \
--docker-username=<your-name> \
Expand Down
4 changes: 2 additions & 2 deletions deploy-example/kubernetes-manifest/2_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
kind: Secret
type: kubernetes.io/dockerconfigjson
metadata:
name: image-pull-secret
name: image-pull-secret-src
namespace: imagepullsecret-patcher
data:
.dockerconfigjson: eyJhdXRocyI6eyJnY3IuaW8iOnsicGFzc3dvcmQiOiJ7XCJhdXRoXCI6e1wiZ2NyLmlvXCI6e1widXNlcm5hbWVcIjpcIl9qc29uX2tleVwiLFwicGFzc3dvcmRcIjpcInt9XCJ9fX0iLCJ1c2VybmFtZSI6Il9qc29uX2tleSJ9fX0=
Expand Down Expand Up @@ -52,4 +52,4 @@ spec:
volumes:
- name: src-dockerconfigjson
secret:
secretName: image-pull-secret
secretName: image-pull-secret-src

0 comments on commit bdf0891

Please sign in to comment.