From c36e5dd9e352e2578a1c7229725cb406897715b5 Mon Sep 17 00:00:00 2001 From: fabiankramm Date: Tue, 23 Oct 2018 11:53:00 +0200 Subject: [PATCH] Improve kaniko example --- docs/docs/configuration/config.yaml.md | 2 +- examples/kaniko/README.md | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/docs/configuration/config.yaml.md b/docs/docs/configuration/config.yaml.md index 7a19ef5153..90c37bd367 100644 --- a/docs/docs/configuration/config.yaml.md +++ b/docs/docs/configuration/config.yaml.md @@ -109,7 +109,7 @@ DockerConfig: KanikoConfig: - `cache` *bool* if true the last image build is used as cache repository - `namespace` *string* specifies the namespace where the build pod should be started -- `pullSecret` *string* mount this pullSecret instead of creating one to authenticate to the registry +- `pullSecret` *string* mount this pullSecret instead of creating one to authenticate to the registry (see [kaniko](https://github.com/covexo/devspace/tree/master/examples/kaniko) for an example) ### images[].build.options BuildOptions: diff --git a/examples/kaniko/README.md b/examples/kaniko/README.md index 3c6891ff2b..c095699dbf 100644 --- a/examples/kaniko/README.md +++ b/examples/kaniko/README.md @@ -39,16 +39,16 @@ As a third option you can provide the pullSecret to use for kaniko yourself. Mak apiVersion: v1 kind: Secret data: - # .dockerconfigjson encoded in base64 e.g.: + # You need to specify the .dockerconfigjson (which will be mounted in the executor pod in /root/.docker/config.json) encoded in base64 e.g.: # { # "auths": { - # "myRegistryUrl": { - # "auth": "base64Encoded(user:password/token)", - # "email": "myemail@test.de" + # "": { + # "auth": "", + # "email": "" # } # } # } - .dockerconfigjson: BASE64EncodedDockerConfigJson + .dockerconfigjson: ``` Now specify the pullsecret name as the pull secret to use for kaniko in the .devspace/config: