From 25363bba54b944c3e884c718cd429ddabe3622ce Mon Sep 17 00:00:00 2001 From: Suraj Deshmukh Date: Sun, 8 Oct 2017 20:46:36 +0530 Subject: [PATCH] (Private registry configs): link to the private registry pod manifest (#5807) add download link to the private registry pod manifest in docs. --- .../tasks/configure-pod-container/private-reg-pod.yaml | 6 +++--- docs/tasks/configure-pod-container/private-reg-pod.yaml | 6 +++--- .../pull-image-private-registry.md | 9 ++++++--- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/cn/docs/tasks/configure-pod-container/private-reg-pod.yaml b/cn/docs/tasks/configure-pod-container/private-reg-pod.yaml index 9928b6d608..703b7c4c14 100644 --- a/cn/docs/tasks/configure-pod-container/private-reg-pod.yaml +++ b/cn/docs/tasks/configure-pod-container/private-reg-pod.yaml @@ -4,8 +4,8 @@ metadata: name: private-reg spec: containers: - - name: private-reg-container - image: + - name: private-reg-container + image: imagePullSecrets: - - name: regsecret + - name: regsecret diff --git a/docs/tasks/configure-pod-container/private-reg-pod.yaml b/docs/tasks/configure-pod-container/private-reg-pod.yaml index 9928b6d608..703b7c4c14 100644 --- a/docs/tasks/configure-pod-container/private-reg-pod.yaml +++ b/docs/tasks/configure-pod-container/private-reg-pod.yaml @@ -4,8 +4,8 @@ metadata: name: private-reg spec: containers: - - name: private-reg-container - image: + - name: private-reg-container + image: imagePullSecrets: - - name: regsecret + - name: regsecret diff --git a/docs/tasks/configure-pod-container/pull-image-private-registry.md b/docs/tasks/configure-pod-container/pull-image-private-registry.md index 7c3f6db3a8..36f8ac617a 100644 --- a/docs/tasks/configure-pod-container/pull-image-private-registry.md +++ b/docs/tasks/configure-pod-container/pull-image-private-registry.md @@ -102,9 +102,12 @@ Here is a configuration file for a Pod that needs access to your secret data: {% include code.html language="yaml" file="private-reg-pod.yaml" ghlink="/docs/tasks/configure-pod-container/private-reg-pod.yaml" %} -Copy the contents of `private-reg-pod.yaml` to your own file named -`my-private-reg-pod.yaml`. In your file, replace `` with -the path to an image in a private repository. +Download the above file: + + wget -O my-private-reg-pod.yaml https://k8s.io/docs/tasks/configure-pod-container/private-reg-pod.yaml + +In file `my-private-reg-pod.yaml`, replace `` with the +path to an image in a private repository. Example Docker Hub private image: